summaryrefslogtreecommitdiffstats
path: root/src/tools/tqlibrary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/tqlibrary.cpp')
-rw-r--r--src/tools/tqlibrary.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/tools/tqlibrary.cpp b/src/tools/tqlibrary.cpp
index 05ceee649..947492f39 100644
--- a/src/tools/tqlibrary.cpp
+++ b/src/tools/tqlibrary.cpp
@@ -138,7 +138,7 @@ TQLibraryPrivate::TQLibraryPrivate( TQLibrary *lib )
\sa load() unload(), setAutoUnload()
*/
TQLibrary::TQLibrary( const TQString& filename )
- : libfile( filename ), aunload( TRUE )
+ : libfile( filename ), aunload( true )
{
libfile.replace( '\\', '/' );
d = new TQLibraryPrivate( this );
@@ -147,7 +147,7 @@ TQLibrary::TQLibrary( const TQString& filename )
/*!
Deletes the TQLibrary object.
- The library will be unloaded if autoUnload() is TRUE (the
+ The library will be unloaded if autoUnload() is true (the
default), otherwise it stays in memory until the application
exits.
@@ -254,7 +254,7 @@ void *TQLibrary::resolve( const char* symb )
\code
typedef void (*FunctionType)();
static FunctionType *ptrFunction = 0;
- static bool triedResolve = FALSE;
+ static bool triedResolve = false;
if ( !ptrFunction && !triedResolve )
ptrFunction = TQLibrary::resolve( "mylib", "mysymb" );
@@ -272,12 +272,12 @@ void *TQLibrary::resolve( const char* symb )
void *TQLibrary::resolve( const TQString &filename, const char *symb )
{
TQLibrary lib( filename );
- lib.setAutoUnload( FALSE );
+ lib.setAutoUnload( false );
return lib.resolve( symb );
}
/*!
- Returns TRUE if the library is loaded; otherwise returns FALSE.
+ Returns true if the library is loaded; otherwise returns false.
\sa unload()
*/
@@ -321,13 +321,13 @@ bool TQLibrary::isLoaded() const
bool TQLibrary::load()
{
if (libfile.isEmpty())
- return FALSE;
+ return false;
return d->loadLibrary();
}
/*!
- Unloads the library and returns TRUE if the library could be
- unloaded; otherwise returns FALSE.
+ Unloads the library and returns true if the library could be
+ unloaded; otherwise returns false.
This function is called by the destructor if autoUnload() is
enabled.
@@ -337,14 +337,14 @@ bool TQLibrary::load()
bool TQLibrary::unload()
{
if ( !d->pHnd )
- return TRUE;
+ return true;
#if !defined(TQT_NO_LIBRARY_UNLOAD)
if ( !d->freeLibrary() ) {
# if defined(QT_DEBUG_COMPONENT)
tqWarning( "%s could not be unloaded", (const char*) TQFile::encodeName(library()) );
# endif
- return FALSE;
+ return false;
}
# if defined(QT_DEBUG_COMPONENT) && QT_DEBUG_COMPONENT == 2
@@ -352,13 +352,13 @@ bool TQLibrary::unload()
# endif
d->pHnd = 0;
#endif
- return TRUE;
+ return true;
}
/*!
- Returns TRUE if the library will be automatically unloaded when
- this wrapper object is destructed; otherwise returns FALSE. The
- default is TRUE.
+ Returns true if the library will be automatically unloaded when
+ this wrapper object is destructed; otherwise returns false. The
+ default is true.
\sa setAutoUnload()
*/
@@ -368,9 +368,9 @@ bool TQLibrary::autoUnload() const
}
/*!
- If \a enabled is TRUE (the default), the wrapper object is set to
+ If \a enabled is true (the default), the wrapper object is set to
automatically unload the library upon destruction. If \a enabled
- is FALSE, the wrapper object is not unloaded unless you explicitly
+ is false, the wrapper object is not unloaded unless you explicitly
call unload().
\sa autoUnload()
@@ -412,7 +412,7 @@ TQString TQLibrary::library() const
#else
filters << ".so";
#endif
- for(TQStringList::Iterator it = filters.begin(); TRUE; ) {
+ for(TQStringList::Iterator it = filters.begin(); true; ) {
TQString filter = (*it);
++it;