summaryrefslogtreecommitdiffstats
path: root/src/kernel/tqpixmapcache.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-12-08 15:17:51 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-12-08 19:38:03 +0900
commit7d612f7c91d55501276a385a30dbadb121e7bd9f (patch)
tree4c6f1546e16db32779dfbf5c9e107b938faee6bb /src/kernel/tqpixmapcache.cpp
parent5a863a8932d14b99c5f838c4efa1618070d71b29 (diff)
downloadtqt-7d612f7c91d55501276a385a30dbadb121e7bd9f.tar.gz
tqt-7d612f7c91d55501276a385a30dbadb121e7bd9f.zip
Replace TRUE/FALSE with boolean values true/false - part 8HEADmaster
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/kernel/tqpixmapcache.cpp')
-rw-r--r--src/kernel/tqpixmapcache.cpp14
1 files changed, 7 insertions, 7 deletions
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<TQPixmap>( 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<TQPixmap>::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.
<strong>
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