1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-24 15:10:39 +00:00

(trunk qt) housekeeping: tr_bool --> bool

This commit is contained in:
Jordan Lee 2011-03-23 18:26:01 +00:00
parent bc213eb0e9
commit 4b4f3a0efb
3 changed files with 8 additions and 8 deletions

View 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 ) );

View 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 );

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