diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-02 13:19:40 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-02 13:19:41 +0900 |
commit | f3c7a90bfa0646afefeaa7af84edf625cdadf78d (patch) | |
tree | 2b3194f56e43728f5bfdb95d7c78b71694d55497 /puic/domtool.cpp | |
parent | 0e72ac24e5ebb8c31003af380befd215e7509ce1 (diff) | |
download | libtqt-perl-f3c7a90bfa0646afefeaa7af84edf625cdadf78d.tar.gz libtqt-perl-f3c7a90bfa0646afefeaa7af84edf625cdadf78d.zip |
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'puic/domtool.cpp')
-rw-r--r-- | puic/domtool.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/puic/domtool.cpp b/puic/domtool.cpp index 90f367f..515c68e 100644 --- a/puic/domtool.cpp +++ b/puic/domtool.cpp @@ -86,10 +86,10 @@ bool DomTool::hasProperty( const TQDomElement& e, const TQString& name ) if ( n.tagName() == "property" ) { if ( n.attribute( "name" ) != name ) continue; - return TRUE; + return true; } } - return FALSE; + return false; } TQStringList DomTool::propertiesOfType( const TQDomElement& e, const TQString& type ) @@ -186,7 +186,7 @@ TQVariant DomTool::elementToVariant( const TQDomElement& e, const TQVariant& def } else if ( e.tagName() == "cstring" ) { v = TQVariant( TQCString( e.firstChild().toText().data() ) ); } else if ( e.tagName() == "number" ) { - bool ok = TRUE; + bool ok = true; v = TQVariant( e.firstChild().toText().data().toInt( &ok ) ); if ( !ok ) v = TQVariant( e.firstChild().toText().data().toDouble() ); @@ -340,10 +340,10 @@ bool DomTool::hasAttribute( const TQDomElement& e, const TQString& name ) if ( n.tagName() == "attribute" ) { if ( n.attribute( "name" ) != name ) continue; - return TRUE; + return true; } } - return FALSE; + return false; } static bool toBool( const TQString& s ) |