From 7d612f7c91d55501276a385a30dbadb121e7bd9f Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 8 Dec 2025 15:17:51 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 8 Signed-off-by: Michele Calgaro --- src/kernel/tqpixmapcache.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/kernel/tqpixmapcache.cpp') diff --git a/src/kernel/tqpixmapcache.cpp b/src/kernel/tqpixmapcache.cpp index 369df0c08..0976554fe 100644 --- a/src/kernel/tqpixmapcache.cpp +++ b/src/kernel/tqpixmapcache.cpp @@ -107,9 +107,9 @@ public: TQPMCache(): TQObject( 0, "global pixmap cache" ), TQCache( cache_limit * 1024, cache_size ), - id( 0 ), ps( 0 ), t( FALSE ) + id( 0 ), ps( 0 ), t( false ) { - setAutoDelete( TRUE ); + setAutoDelete( true ); } ~TQPMCache() {} void timerEvent( TQTimerEvent * ); @@ -155,7 +155,7 @@ bool TQPMCache::insert( const TQString& k, const TQPixmap *d, int c, int p ) bool r = TQCache::insert( k, d, c, p ); if ( r && !id ) { id = startTimer( 30000 ); - t = FALSE; + t = false; } return r; } @@ -198,7 +198,7 @@ TQPixmap *TQPixmapCache::find( const TQString &key ) Looks for a cached pixmap associated with the \a key in the cache. If a pixmap is found, the function sets \a pm to that pixmap and - returns TRUE; otherwise leaves \a pm alone and returns FALSE. + returns true; otherwise leaves \a pm alone and returns false. Example: \code @@ -222,14 +222,14 @@ bool TQPixmapCache::find( const TQString &key, TQPixmap& pm ) /*! \obsolete Inserts the pixmap \a pm associated with \a key into the cache. - Returns TRUE if successful, or FALSE if the pixmap is too big for the cache. + Returns true if successful, or false if the pixmap is too big for the cache. Note: \a pm must be allocated on the heap (using \c new). - If this function returns FALSE, you must delete \a pm yourself. + If this function returns false, you must delete \a pm yourself. - If this function returns TRUE, do not use \a pm afterwards or + If this function returns true, do not use \a pm afterwards or keep references to it because any other insertions into the cache, whether from anywhere in the application or within TQt itself, could cause the pixmap to be discarded from the cache and the pointer to -- cgit v1.2.3