diff options
Diffstat (limited to 'src/kernel/tqpixmapcache.cpp')
| -rw-r--r-- | src/kernel/tqpixmapcache.cpp | 14 |
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 |
