From 1ff2d4f434e1542936d17d71b10aa972dde8d101 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Tue, 5 Sep 2017 06:41:21 +0200 Subject: [PATCH] Fix build? --- src/miscellaneous/systemfactory.cpp | 8 ++++---- src/services/standard/feedparser.cpp | 6 ++++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/miscellaneous/systemfactory.cpp b/src/miscellaneous/systemfactory.cpp index 2b59b8cc2..1d347cad8 100755 --- a/src/miscellaneous/systemfactory.cpp +++ b/src/miscellaneous/systemfactory.cpp @@ -71,7 +71,7 @@ SystemFactory::AutoStartStatus SystemFactory::autoStartStatus() const { // No correct path was found. if (desktop_file_location.isEmpty()) { qWarning("Searching for auto-start function status failed. HOME variable not found."); - return SystemFactory::Unavailable; + return AutoStartStatus::Unavailable; } // We found correct path, now check if file exists and return correct status. @@ -79,15 +79,15 @@ SystemFactory::AutoStartStatus SystemFactory::autoStartStatus() const { // File exists, we must read it and check if "Hidden" attribute is defined and what is its value. QSettings desktop_settings(desktop_file_location, QSettings::IniFormat); bool hidden_value = desktop_settings.value(QSL("Desktop Entry/Hidden"), false).toBool(); - return hidden_value ? SystemFactory::Disabled : SystemFactory::Enabled; + return hidden_value ? AutoStartStatus::Disabled : AutoStartStatus::Enabled; } else { - return SystemFactory::Disabled; + return AutoStartStatus::Disabled; } #else // Disable auto-start functionality on unsupported platforms. - return SystemFactory::Unavailable; + return AutoStartStatus::Unavailable; #endif } diff --git a/src/services/standard/feedparser.cpp b/src/services/standard/feedparser.cpp index 2181be3f0..99af01656 100755 --- a/src/services/standard/feedparser.cpp +++ b/src/services/standard/feedparser.cpp @@ -19,6 +19,8 @@ #include "exceptions/applicationexception.h" +#include + FeedParser::FeedParser(const QString& data) : m_xmlData(data) { m_xml.setContent(m_xmlData, true); @@ -47,8 +49,8 @@ QList FeedParser::messages() { messages.append(new_message); } catch (const ApplicationException& ex) { - qDebug(qPrintable(ex.message())); - } + qDebug() << ex.message(); + } } return messages;