]> granicus.if.org Git - transmission/commitdiff
Remove some unused includes/macros; fix build (re. QPointer)
authorMike Gelfand <mikedld@mikedld.com>
Thu, 30 Jul 2015 06:55:28 +0000 (06:55 +0000)
committerMike Gelfand <mikedld@mikedld.com>
Thu, 30 Jul 2015 06:55:28 +0000 (06:55 +0000)
qt/Application.cc
qt/Formatter.cc
qt/MainWindow.cc
qt/Prefs.cc
qt/PrefsDialog.cc
qt/TorrentDelegate.cc
qt/TorrentDelegateMin.cc
qt/TorrentFilter.cc
qt/TorrentModel.cc
qt/TrackerDelegate.cc
qt/Utils.h

index f9395b20fcbfafc8d9a366f8e4802c8b1c8f01fa..a2a90cb27892dc86dcba24bf8fa52eb6b3a54764 100644 (file)
@@ -7,7 +7,6 @@
  * $Id$
  */
 
-#include <cassert>
 #include <ctime>
 #include <iostream>
 
index df51631158476924157538f3e9d200dd38c64270..ada908157656d0ecc9d753d43c21d016c71e8a87 100644 (file)
@@ -7,8 +7,6 @@
  * $Id$
  */
 
-#include <iostream>
-
 #include <libtransmission/transmission.h>
 #include <libtransmission/utils.h> // tr_formatter
 
index eff80c068a5d5cd620ea013a18fd9e8ec219a232..945f3ac8de55268d8065626407b9e5cd88216db9 100644 (file)
@@ -8,7 +8,6 @@
  */
 
 #include <cassert>
-#include <iostream>
 
 #include <QtGui>
 #include <QCheckBox>
@@ -44,8 +43,6 @@
 #include "TorrentModel.h"
 #include "Utils.h"
 
-#define PREFS_KEY "prefs-key";
-
 
 /**
  * This is a proxy-style for that forces it to be always disabled.
@@ -337,8 +334,6 @@ MainWindow::onSetPrefs (bool isChecked)
     onSetPrefs ();
 }
 
-#define SHOW_KEY "show-mode"
-
 void
 MainWindow::initStatusBar ()
 {
index 1b4ab409381cb136d0caa9b7e3e3d3feb617407a..692515b1a742503f5b746e50dfaed02bf6ee2fed 100644 (file)
@@ -9,7 +9,6 @@
 
 #include <cassert>
 #include <cstdlib>
-#include <iostream>
 
 #include <QDateTime>
 #include <QDir>
index 68b42bec001ba0e5728bc73d672ca54f97146933..7d331980c23aab335cbc0bc00f73ff704927dee2 100644 (file)
@@ -7,9 +7,13 @@
  * $Id$
  */
 
+#ifdef _WIN32
+ #include <winsock2.h> // FD_SETSIZE
+#else
+ #include <sys/select.h> // FD_SETSIZE
+#endif
+
 #include <cassert>
-#include <climits> /* INT_MAX */
-#include <iostream>
 
 #include <QCheckBox>
 #include <QComboBox>
index 5b8ff8e6d0dc56dcaa90ce8c2dcd60212ca2144c..dfc3d08bdadfa42f0d06d8ccfa4b127b98e38912 100644 (file)
@@ -7,9 +7,6 @@
  * $Id$
  */
 
-
-#include <iostream>
-
 #include <QApplication>
 #include <QFont>
 #include <QFontMetrics>
index b69ad79e03aeed34f0bed858a6c6391c96b463e8..361a9904926fe05b1e5922fc4b0a3be062700e1f 100644 (file)
@@ -7,8 +7,6 @@
  * $Id$
  */
 
-#include <iostream>
-
 #include <QApplication>
 #include <QBrush>
 #include <QFont>
index 019b3e376a75e1c7fe041f5b9550b7234432bc4b..5042b12d2ac43962dfd9145872de17257e4f33b2 100644 (file)
@@ -8,7 +8,6 @@
  */
 
 #include <algorithm>
-#include <iostream>
 
 #include "Filters.h"
 #include "Prefs.h"
index 197a0ad895f2880e1a6c67c44e67c4df06a3fb55..5f6509a03f11972f551715426e249644ef9a00b9 100644 (file)
@@ -7,7 +7,6 @@
  * $Id$
  */
 
-#include <cassert>
 #include <iostream>
 
 #include <libtransmission/transmission.h>
index ee23c83ad1f1c1246059d942132104db01382f4a..23018734e1541ea42ebe0e0e8970734c3ac33d37 100644 (file)
@@ -7,8 +7,6 @@
  * $Id$
  */
 
-#include <iostream>
-
 #include <QAbstractTextDocumentLayout>
 #include <QApplication>
 #include <QPainter>
index eaac3d25d350736bb551fe65711266a09f4d65c5..2d7f281bf826989ba30f933f91bcf7647e0db661 100644 (file)
@@ -12,6 +12,7 @@
 
 #include <cctype> // isxdigit()
 
+#include <QPointer>
 #include <QRect>
 #include <QString>