]> granicus.if.org Git - transmission/commitdiff
(trunk qt) housekeeping: tr_bool --> bool
authorJordan Lee <jordan@transmissionbt.com>
Wed, 23 Mar 2011 18:26:01 +0000 (18:26 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Wed, 23 Mar 2011 18:26:01 +0000 (18:26 +0000)
qt/prefs.cc
qt/session.cc
qt/torrent.cc

index 39d8a5d9b8d0af8604f29bc32cc612402d8b927a..5c64600f2d310e4d4a1e60413064ef1f4cdc3bd7 100644 (file)
@@ -140,7 +140,7 @@ Prefs :: Prefs( const char * configDir ):
     for( int i=0; i<PREFS_COUNT; ++i )
     {
         double d;
-        tr_bool boolVal;
+        bool boolVal;
         int64_t intVal;
         const char * str;
         tr_benc * b( tr_bencDictFind( &top, myItems[i].key ) );
index de60ea24966b30185fc33de51e50a4cdec35f7b4..93edcf91eb40d149368c30a738d4e5e68c1af823 100644 (file)
@@ -799,7 +799,7 @@ Session :: parseResponse( const char * json, size_t jsonLength )
                 }
 
                 case TAG_PORT_TEST: {
-                    tr_bool isOpen = 0;
+                    bool isOpen = 0;
                     if( tr_bencDictFindDict( &top, "arguments", &args ) )
                         tr_bencDictFindBool( args, "port-is-open", &isOpen );
                     emit portTested( (bool)isOpen );
@@ -917,7 +917,7 @@ Session :: updateInfo( tr_benc * d )
                 break;
             }
             case QVariant :: Bool: {
-                tr_bool val;
+                bool val;
                 if( tr_bencGetBool( b, &val ) )
                     myPrefs.set( i, (bool)val );
                 break;
@@ -935,7 +935,7 @@ Session :: updateInfo( tr_benc * d )
         }
     }
 
-    tr_bool b;
+    bool b;
     double x;
     if( tr_bencDictFindBool( d, "seedRatioLimited", &b ) )
         myPrefs.set( Prefs::RATIO_ENABLED, b ? true : false );
index 5aa941904e833d77ba842c65cf35aa612071cbbc..5933926169fd4b69ef64d6d0fcfdbeea2e20c2a3 100644 (file)
@@ -471,7 +471,7 @@ Torrent :: update( tr_benc * d )
             }
 
             case QVariant :: Bool: {
-                tr_bool val;
+                bool val;
                 if( tr_bencGetBool( child, &val ) )
                     changed |= setBool( i, val );
                 break;
@@ -539,7 +539,7 @@ Torrent :: update( tr_benc * d )
         const int n = tr_bencListSize( files );
         for( int i=0; i<n && i<myFiles.size(); ++i ) {
             int64_t intVal;
-            tr_bool boolVal;
+            bool boolVal;
             tr_benc * child = tr_bencListChild( files, i );
             TrFile& file( myFiles[i] );
             if( tr_bencDictFindInt( child, "bytesCompleted", &intVal ) )
@@ -576,7 +576,7 @@ Torrent :: update( tr_benc * d )
         TrackerStatsList  trackerStatsList;
         int childNum = 0;
         while(( child = tr_bencListChild( trackerStats, childNum++ ))) {
-            tr_bool b;
+            bool b;
             int64_t i;
             const char * str;
             TrackerStat trackerStat;
@@ -645,7 +645,7 @@ Torrent :: update( tr_benc * d )
         int childNum = 0;
         while(( child = tr_bencListChild( peers, childNum++ ))) {
             double d;
-            tr_bool b;
+            bool b;
             int64_t i;
             const char * str;
             Peer peer;