Browse Source

Fix 3 compiler warnings

adaptive-webui-19844
ngosang 9 years ago
parent
commit
fbb47ce08f
  1. 2
      src/app/application.cpp
  2. 1
      src/core/bittorrent/session.cpp
  3. 6
      src/gui/rss/rssparser.cpp

2
src/app/application.cpp

@ -163,9 +163,9 @@ void Application::torrentFinished(BitTorrent::TorrentHandle *const torrent) @@ -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()

1
src/core/bittorrent/session.cpp

@ -88,7 +88,6 @@ using namespace BitTorrent; @@ -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;

6
src/gui/rss/rssparser.cpp

@ -58,12 +58,6 @@ static const char shortMonth[][4] = { @@ -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) {

Loading…
Cancel
Save