From e41b62b16f9cb77e47c9179e75fdfc48bb349a79 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Sat, 9 Jan 2016 18:30:39 +0100 Subject: [PATCH] Save work. --- src/core/feeddownloader.cpp | 3 --- src/core/feedsmodel.h | 4 +++- src/miscellaneous/application.cpp | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/core/feeddownloader.cpp b/src/core/feeddownloader.cpp index fef8b0086..ee8953571 100755 --- a/src/core/feeddownloader.cpp +++ b/src/core/feeddownloader.cpp @@ -61,12 +61,9 @@ void FeedDownloader::updateFeeds(const QList &feeds) { emit finished(results); } - FeedDownloadResults::FeedDownloadResults() : m_updatedFeeds(QList >()) { } - - QString FeedDownloadResults::overview(int how_many_feeds) { qSort(m_updatedFeeds.begin(), m_updatedFeeds.end(), FeedDownloadResults::lessThan); diff --git a/src/core/feedsmodel.h b/src/core/feedsmodel.h index 55ef846d9..8dd59365a 100755 --- a/src/core/feedsmodel.h +++ b/src/core/feedsmodel.h @@ -21,8 +21,8 @@ #include #include "core/message.h" -#include "services/abstract/rootitem.h" #include "core/feeddownloader.h" +#include "services/abstract/rootitem.h" class DatabaseCleaner; class Category; @@ -40,6 +40,7 @@ class FeedsModel : public QAbstractItemModel { explicit FeedsModel(QObject *parent = 0); virtual ~FeedsModel(); + // Access to DB cleaner. DatabaseCleaner *databaseCleaner(); // Model implementation. @@ -55,6 +56,7 @@ class FeedsModel : public QAbstractItemModel { Qt::DropActions supportedDropActions() const; Qt::ItemFlags flags(const QModelIndex &index) const; + // Other subclassed methods. QVariant headerData(int section, Qt::Orientation orientation, int role) const; QModelIndex index(int row, int column, const QModelIndex &parent) const; QModelIndex parent(const QModelIndex &child) const; diff --git a/src/miscellaneous/application.cpp b/src/miscellaneous/application.cpp index 41e8dadd4..f2356a3a2 100755 --- a/src/miscellaneous/application.cpp +++ b/src/miscellaneous/application.cpp @@ -159,7 +159,7 @@ void Application::restoreDatabaseSettings(bool restore_database, bool restore_se void Application::processExecutionMessage(const QString &message) { qDebug("Received '%s' execution message from another application instance.", qPrintable(message)); - foreach (QString msg, message.split(ARGUMENTS_LIST_SEPARATOR)) { + foreach (const QString &msg, message.split(ARGUMENTS_LIST_SEPARATOR)) { if (msg == APP_IS_RUNNING) { showGuiMessage(APP_NAME, tr("Application is already running."), QSystemTrayIcon::Information); mainForm()->display();