summaryrefslogtreecommitdiffstats
path: root/src/tools/tqgdict.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-12-22 12:05:18 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-12-22 12:13:05 +0900
commita4ebd73f48610ed351c9c53f3646d0597f8ea7bc (patch)
tree2edd219eef4cb8f35bb3844d06902ae8b2fcb565 /src/tools/tqgdict.cpp
parent7d612f7c91d55501276a385a30dbadb121e7bd9f (diff)
downloadtqt-rename/true-false-9.tar.gz
tqt-rename/true-false-9.zip
Replace TRUE/FALSE with boolean values true/false - part 9rename/true-false-9
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/tools/tqgdict.cpp')
-rw-r--r--src/tools/tqgdict.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/tools/tqgdict.cpp b/src/tools/tqgdict.cpp
index 894881a61..d810cbe0f 100644
--- a/src/tools/tqgdict.cpp
+++ b/src/tools/tqgdict.cpp
@@ -196,7 +196,7 @@ TQDataStream& TQGDict::write( TQDataStream &s, TQPtrCollection::Item ) const
\a len is the initial size of the dictionary.
The key type is \a kt which may be \c StringKey, \c AsciiKey,
\c IntKey or \c PtrKey. The case-sensitivity of lookups is set with
- \a caseSensitive. Keys are copied if \a copyKeys is TRUE.
+ \a caseSensitive. Keys are copied if \a copyKeys is true.
*/
TQGDict::TQGDict( uint len, KeyType kt, bool caseSensitive, bool copyKeys )
@@ -219,15 +219,15 @@ void TQGDict::init( uint len, KeyType kt, bool caseSensitive, bool copyKeys )
switch ( (keytype = (uint)kt) ) {
case StringKey:
cases = caseSensitive;
- copyk = FALSE;
+ copyk = false;
break;
case AsciiKey:
cases = caseSensitive;
copyk = copyKeys;
break;
default:
- cases = FALSE;
- copyk = FALSE;
+ cases = false;
+ copyk = false;
break;
}
}
@@ -477,7 +477,7 @@ void TQGDict::resize( uint newsize )
TQ_CHECK_PTR( vec );
memset( (char*)vec, 0, vlen*sizeof(TQBaseBucket*) );
numItems = 0;
- copyk = FALSE;
+ copyk = false;
// Reinsert every item from vec, deleting vec as we go
for ( uint index = 0; index < old_vlen; index++ ) {
@@ -675,9 +675,9 @@ bool TQGDict::remove_string( const TQString &key, TQPtrCollection::Item item )
if ( n ) {
deleteItem( n->getData() );
delete n;
- return TRUE;
+ return true;
} else {
- return FALSE;
+ return false;
}
}