summaryrefslogtreecommitdiffstats
path: root/src/kernel/tqobjectcleanuphandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/tqobjectcleanuphandler.cpp')
-rw-r--r--src/kernel/tqobjectcleanuphandler.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/kernel/tqobjectcleanuphandler.cpp b/src/kernel/tqobjectcleanuphandler.cpp
index f06ebb7f3..452e4cad9 100644
--- a/src/kernel/tqobjectcleanuphandler.cpp
+++ b/src/kernel/tqobjectcleanuphandler.cpp
@@ -77,7 +77,7 @@
// TQLibraryInterface implementation
bool FactoryComponent::init()
{
- return TRUE;
+ return true;
}
void FactoryComponent::cleanup()
@@ -120,7 +120,7 @@ TQObject* TQObjectCleanupHandler::add( TQObject* object )
if ( !cleanupObjects ) {
cleanupObjects = new TQObjectList;
- cleanupObjects->setAutoDelete( TRUE );
+ cleanupObjects->setAutoDelete( true );
}
connect( object, TQ_SIGNAL(destroyed(TQObject*)), this, TQ_SLOT(objectDestroyed(TQObject*)) );
cleanupObjects->insert( 0, object );
@@ -142,12 +142,12 @@ void TQObjectCleanupHandler::remove( TQObject *object )
}
/*!
- Returns TRUE if this cleanup handler is empty or if all objects in
- this cleanup handler have been destroyed; otherwise return FALSE.
+ Returns true if this cleanup handler is empty or if all objects in
+ this cleanup handler have been destroyed; otherwise return false.
*/
bool TQObjectCleanupHandler::isEmpty() const
{
- return cleanupObjects ? cleanupObjects->isEmpty() : TRUE;
+ return cleanupObjects ? cleanupObjects->isEmpty() : true;
}
/*!
@@ -163,10 +163,10 @@ void TQObjectCleanupHandler::clear()
void TQObjectCleanupHandler::objectDestroyed( TQObject*object )
{
if ( cleanupObjects )
- cleanupObjects->setAutoDelete( FALSE );
+ cleanupObjects->setAutoDelete( false );
remove( object );
if ( cleanupObjects )
- cleanupObjects->setAutoDelete( TRUE );
+ cleanupObjects->setAutoDelete( true );
}