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

@ -41,8 +41,8 @@ void ComicControllerV2::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"))
@ -51,7 +51,7 @@ void ComicControllerV2::service(HttpRequest &request, HttpResponse &response)
// response.write("",true);
// return;
// }
//}
// }
YACReaderLibraries libraries = DBHelper::getLibraries();
@ -87,10 +87,10 @@ void ComicControllerV2::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, false);
@ -116,15 +116,15 @@ void ComicControllerV2::service(HttpRequest &request, HttpResponse &response)
response.write(QString("nextComicHash:%1\r\n").arg(nextComic->info.hash).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);
}