clang-format

This commit is contained in:
Luis Ángel San Martín
2021-10-18 21:56:52 +02:00
parent 78e0c522d2
commit 5aa02a19bb
190 changed files with 2286 additions and 2286 deletions

View File

@ -33,8 +33,8 @@ void ComicController::service(HttpRequest &request, HttpResponse &response)
bool remoteComic = path.endsWith("remote");
//TODO
//if(pathElements.size() == 6)
// TODO
// if(pathElements.size() == 6)
//{
// QString action = pathElements.at(5);
// if(!action.isEmpty() && (action == "close"))
@ -43,7 +43,7 @@ void ComicController::service(HttpRequest &request, HttpResponse &response)
// response.write("",true);
// return;
// }
//}
// }
YACReaderLibraries libraries = DBHelper::getLibraries();
@ -82,10 +82,10 @@ void ComicController::service(HttpRequest &request, HttpResponse &response)
}
response.setHeader("Content-Type", "text/plain; charset=utf-8");
//TODO this field is not used by the client!
// TODO this field is not used by the client!
response.write(QString("library:%1\r\n").arg(libraryName).toUtf8());
response.write(QString("libraryId:%1\r\n").arg(libraryId).toUtf8());
if (remoteComic) //send previous and next comics id
if (remoteComic) // send previous and next comics id
{
QList<LibraryItem *> siblings = DBHelper::getFolderComicsFromLibrary(libraryId, comic.parentId, true);
bool found = false;
@ -102,15 +102,15 @@ void ComicController::service(HttpRequest &request, HttpResponse &response)
if (i < siblings.length() - 1)
response.write(QString("nextComic:%1\r\n").arg(siblings.at(i + 1)->id).toUtf8());
} else {
//ERROR
// ERROR
}
qDeleteAll(siblings);
}
response.write(comic.toTXT().toUtf8(), true);
} else {
//delete comicFile;
// delete comicFile;
response.setStatus(404, "not found");
response.write("404 not found", true);
}
//response.write(t.toLatin1(),true);
// response.write(t.toLatin1(),true);
}