diff --git a/src/libdanbooru/tests/test_service.cpp b/src/libdanbooru/tests/test_service.cpp index 6ecd69b..cf9929c 100644 --- a/src/libdanbooru/tests/test_service.cpp +++ b/src/libdanbooru/tests/test_service.cpp @@ -25,7 +25,7 @@ namespace Danbooru { DanbooruServiceTest::DanbooruServiceTest(QUrl boardUrl, Danbooru::ApiType type): - m_service(0), + m_service(nullptr), m_label(new QLabel()) { auto cache = new KImageCache("test-data", 48000000); @@ -39,12 +39,13 @@ DanbooruServiceTest::DanbooruServiceTest(QUrl boardUrl, Danbooru::ApiType type): case Danbooru::Danbooru: m_service = new DanbooruService(boardUrl); break; + default: + qDebug() << "Not implemented"; }; - qDebug() << m_service->apiType() << "type"; m_service->setParent(this); - m_service->setMaximumAllowedRating(Danbooru::Questionable); + m_service->setMaximumAllowedRating(Danbooru::Explicit); m_service->setMaxPosts(2); m_service->setImageCache(cache); connect(m_service, &DanbooruServiceBase::postDownloaded, this, &DanbooruServiceTest::showPostData);