Fix 3 compiler warnings

This commit is contained in:
ngosang 2015-08-01 22:04:51 +02:00
parent e3cb9de365
commit fbb47ce08f
3 changed files with 1 additions and 8 deletions

View File

@ -163,9 +163,9 @@ void Application::torrentFinished(BitTorrent::TorrentHandle *const torrent)
void Application::allTorrentsFinished() void Application::allTorrentsFinished()
{ {
#ifndef DISABLE_GUI
Preferences *const pref = Preferences::instance(); Preferences *const pref = Preferences::instance();
#ifndef DISABLE_GUI
bool will_shutdown = (pref->shutdownWhenDownloadsComplete() bool will_shutdown = (pref->shutdownWhenDownloadsComplete()
|| pref->shutdownqBTWhenDownloadsComplete() || pref->shutdownqBTWhenDownloadsComplete()
|| pref->suspendWhenDownloadsComplete() || pref->suspendWhenDownloadsComplete()

View File

@ -88,7 +88,6 @@ using namespace BitTorrent;
static const char PEER_ID[] = "qB"; static const char PEER_ID[] = "qB";
static const char RESUME_FOLDER[] = "BT_backup"; static const char RESUME_FOLDER[] = "BT_backup";
static const int MAX_TRACKER_ERRORS = 2;
namespace libt = libtorrent; namespace libt = libtorrent;
using namespace BitTorrent; using namespace BitTorrent;

View File

@ -58,12 +58,6 @@ static const char shortMonth[][4] = {
"May", "Jun", "Jul", "Aug", "May", "Jun", "Jul", "Aug",
"Sep", "Oct", "Nov", "Dec" "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 // Ported to Qt4 from KDElibs4
QDateTime RssParser::parseDate(const QString &string) { QDateTime RssParser::parseDate(const QString &string) {