Format code using clang-format

This commit is contained in:
Luis Ángel San Martín
2019-05-30 19:46:37 +02:00
parent e0eb94e3ae
commit e3ec56aa43
356 changed files with 19824 additions and 21874 deletions

View File

@ -4,11 +4,8 @@
#include "reading_list.h"
#include "yacreader_server_data_helper.h"
ReadingListsControllerV2::ReadingListsControllerV2()
{
}
void ReadingListsControllerV2::service(HttpRequest &request, HttpResponse &response)
@ -21,7 +18,7 @@ void ReadingListsControllerV2::service(HttpRequest &request, HttpResponse &respo
serviceContent(libraryId, response);
response.write("",true);
response.write("", true);
}
void ReadingListsControllerV2::serviceContent(const int library, HttpResponse &response)
@ -30,8 +27,7 @@ void ReadingListsControllerV2::serviceContent(const int library, HttpResponse &r
QJsonArray items;
for(QList<ReadingList>::const_iterator itr = readingLists.constBegin();itr!=readingLists.constEnd();itr++)
{
for (QList<ReadingList>::const_iterator itr = readingLists.constBegin(); itr != readingLists.constEnd(); itr++) {
items.append(YACReaderServerDataHelper::readingListToJSON(library, *itr));
}