1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-29 16:04:21 +00:00

Merge pull request #3537 from ngosang/fixwarnings

Fix 3 compiler warnings
This commit is contained in:
sledgehammer999 2015-08-02 16:10:24 +03:00
commit eef2a0a200
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()
{
#ifndef DISABLE_GUI
Preferences *const pref = Preferences::instance();
#ifndef DISABLE_GUI
bool will_shutdown = (pref->shutdownWhenDownloadsComplete()
|| pref->shutdownqBTWhenDownloadsComplete()
|| pref->suspendWhenDownloadsComplete()

View File

@ -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;

View File

@ -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) {