diff options
Diffstat (limited to 'src/tools/tqcomlibrary.cpp')
| -rw-r--r-- | src/tools/tqcomlibrary.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/tools/tqcomlibrary.cpp b/src/tools/tqcomlibrary.cpp index b13c58b9d..19c03c019 100644 --- a/src/tools/tqcomlibrary.cpp +++ b/src/tools/tqcomlibrary.cpp @@ -79,11 +79,11 @@ bool TQComLibrary::unload() int refs = entry ? entry->release() : 0; entry = 0; if (refs || !libiface) - return FALSE; + return false; libiface->cleanup(); if ( !libiface->canUnload() ) - return FALSE; + return false; libiface->release(); libiface = 0; @@ -125,9 +125,9 @@ static bool qt_verify( const TQString& library, uint version, uint flags, TQT_BUILD_KEY, key.isEmpty() ? "<null>" : (const char *) key ); } else { - return TRUE; + return true; } - return FALSE; + return false; } struct qt_token_info @@ -205,12 +205,12 @@ static int qt_tokenize( const char *s, ulong s_len, ulong *advance, } /* - returns TRUE if the string s was correctly parsed, FALSE otherwise. + returns true if the string s was correctly parsed, false otherwise. */ static bool qt_parse_pattern( const char *s, uint *version, uint *flags, TQCString *key ) { - bool ret = TRUE; + bool ret = true; qt_token_info pinfo("=\n", 2); int parse; @@ -218,7 +218,7 @@ static bool qt_parse_pattern( const char *s, uint *version, uint *flags, do { parse = qt_tokenize( s + at, parselen, &advance, pinfo ); if ( parse == -1 ) { - ret = FALSE; + ret = false; break; } @@ -235,7 +235,7 @@ static bool qt_parse_pattern( const char *s, uint *version, uint *flags, TQCString p( pinfo2.results[ 2 ], pinfo2.lengths[ 2 ] + 1 ); *version = (m.toUInt() << 16) | (n.toUInt() << 8) | p.toUInt(); } else { - ret = FALSE; + ret = false; break; } } else if ( tqstrncmp( "flags", pinfo.results[ 0 ], pinfo.lengths[ 0 ] ) == 0 ) { @@ -250,7 +250,7 @@ static bool qt_parse_pattern( const char *s, uint *version, uint *flags, if ( ch == '1' ) { *flags |= c; } else if ( ch != '0' ) { - ret = FALSE; + ret = false; break; } ++p; @@ -317,9 +317,9 @@ static long qt_find_pattern( const char *s, ulong s_len, we can get the verification data without have to actually load the library. This lets us detect mismatches more safely. - Returns FALSE if version/flags/key information is not present, or if the + Returns false if version/flags/key information is not present, or if the information could not be read. - Returns TRUE if version/flags/key information is present and succesfully read. + Returns true if version/flags/key information is present and succesfully read. */ static bool qt_unix_query( const TQString &library, uint *version, uint *flags, TQCString *key ) @@ -328,7 +328,7 @@ static bool qt_unix_query( const TQString &library, uint *version, uint *flags, if (! file.open( IO_ReadOnly ) ) { tqWarning( "%s: %s", (const char*) TQFile::encodeName(library), strerror( errno ) ); - return FALSE; + return false; } TQByteArray data; @@ -360,7 +360,7 @@ static bool qt_unix_query( const TQString &library, uint *version, uint *flags, const ulong plen = tqstrlen( pattern ); long pos = qt_find_pattern( filedata, fdlen, pattern, plen ); - bool ret = FALSE; + bool ret = false; if ( pos >= 0 ) { ret = qt_parse_pattern( filedata + pos, version, flags, key ); } @@ -395,8 +395,8 @@ void TQComLibrary::createInstanceInternal() TQStringList reg; uint flags = 0; TQCString key; - bool query_done = FALSE; - bool warn_mismatch = TRUE; + bool query_done = false; + bool warn_mismatch = true; #ifdef TQT_THREAD_SUPPORT TQMutexLocker locker( tqt_global_mutexpool ? @@ -417,8 +417,8 @@ void TQComLibrary::createInstanceInternal() flags = reg[1].toUInt(0, 16); key = reg[2].latin1(); - query_done = TRUE; - warn_mismatch = FALSE; + query_done = true; + warn_mismatch = false; } } @@ -427,7 +427,7 @@ void TQComLibrary::createInstanceInternal() // get the query information directly from the plugin without loading if ( qt_unix_query( library(), &qt_version, &flags, &key ) ) { // info read succesfully from library - query_done = TRUE; + query_done = true; } } #else // !Q_OS_UNIX @@ -450,7 +450,7 @@ void TQComLibrary::createInstanceInternal() qt_version = flags = 0; key = "unknown"; } else { - query_done = TRUE; + query_done = true; } } #endif // Q_OS_UNIX |
