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-03 10:33:33 +0900 |
commit | 35ae72ca02b756a4829dca2f3642652739b6a2bd (patch) | |
tree | 0d13159afe4f3eba0fdb7cc23372667794b96e8e /puic/domtool.cpp | |
parent | 8e2be4fd190957e3fc2c37ab19deed3299f4e3d3 (diff) | |
download | libtqt-perl-r14.1.x.tar.gz libtqt-perl-r14.1.x.zip |
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit f3c7a90bfa0646afefeaa7af84edf625cdadf78d)
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 6c2809f..6bee7a5 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 ) |