mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
Use nullptr instead of 0
This commit is contained in:
@ -50,8 +50,8 @@ void ComicController::service(HttpRequest &request, HttpResponse &response)
|
||||
|
||||
Comic *comicFile = FactoryComic::newComic(libraries.getPath(libraryId) + comic.path);
|
||||
|
||||
if (comicFile != NULL) {
|
||||
QThread *thread = NULL;
|
||||
if (comicFile != nullptr) {
|
||||
QThread *thread = nullptr;
|
||||
|
||||
thread = new QThread();
|
||||
|
||||
@ -65,7 +65,7 @@ void ComicController::service(HttpRequest &request, HttpResponse &response)
|
||||
|
||||
comicFile->load(libraries.getPath(libraryId) + comic.path);
|
||||
|
||||
if (thread != NULL)
|
||||
if (thread != nullptr)
|
||||
thread->start();
|
||||
|
||||
if (remoteComic) {
|
||||
|
Reference in New Issue
Block a user