}
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 );
break;
}
case QVariant :: Bool: {
- tr_bool val;
+ bool val;
if( tr_bencGetBool( b, &val ) )
myPrefs.set( i, (bool)val );
break;
}
}
- tr_bool b;
+ bool b;
double x;
if( tr_bencDictFindBool( d, "seedRatioLimited", &b ) )
myPrefs.set( Prefs::RATIO_ENABLED, b ? true : false );
}
case QVariant :: Bool: {
- tr_bool val;
+ bool val;
if( tr_bencGetBool( child, &val ) )
changed |= setBool( i, val );
break;
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 ) )
TrackerStatsList trackerStatsList;
int childNum = 0;
while(( child = tr_bencListChild( trackerStats, childNum++ ))) {
- tr_bool b;
+ bool b;
int64_t i;
const char * str;
TrackerStat trackerStat;
int childNum = 0;
while(( child = tr_bencListChild( peers, childNum++ ))) {
double d;
- tr_bool b;
+ bool b;
int64_t i;
const char * str;
Peer peer;