diff --git a/src/app/application.cpp b/src/app/application.cpp index 59db710ad..d5e162e12 100644 --- a/src/app/application.cpp +++ b/src/app/application.cpp @@ -163,9 +163,9 @@ void Application::torrentFinished(BitTorrent::TorrentHandle *const torrent) void Application::allTorrentsFinished() { +#ifndef DISABLE_GUI Preferences *const pref = Preferences::instance(); -#ifndef DISABLE_GUI bool will_shutdown = (pref->shutdownWhenDownloadsComplete() || pref->shutdownqBTWhenDownloadsComplete() || pref->suspendWhenDownloadsComplete() diff --git a/src/core/bittorrent/session.cpp b/src/core/bittorrent/session.cpp index 898f59ad5..ad64966e0 100644 --- a/src/core/bittorrent/session.cpp +++ b/src/core/bittorrent/session.cpp @@ -88,7 +88,6 @@ using namespace BitTorrent; static const char PEER_ID[] = "qB"; static const char RESUME_FOLDER[] = "BT_backup"; -static const int MAX_TRACKER_ERRORS = 2; namespace libt = libtorrent; using namespace BitTorrent; diff --git a/src/gui/rss/rssparser.cpp b/src/gui/rss/rssparser.cpp index 6773a71d7..9f9b87207 100644 --- a/src/gui/rss/rssparser.cpp +++ b/src/gui/rss/rssparser.cpp @@ -58,12 +58,6 @@ static const char shortMonth[][4] = { "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; -static const char longMonth[][10] = { - "January", "February", "March", - "April", "May", "June", - "July", "August", "September", - "October", "November", "December" -}; // Ported to Qt4 from KDElibs4 QDateTime RssParser::parseDate(const QString &string) {