summaryrefslogtreecommitdiffstats
path: root/pytquic3/domtool.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-04-04 13:24:31 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-04-04 21:11:58 +0900
commit2d2a66210c4827dd2469d4fde55bf2c9aab81b5a (patch)
tree8a1b99c230b11fb6e679434055553504620119c7 /pytquic3/domtool.cpp
parentf89d120a2d4982896f0b5c00cee347a010f609a9 (diff)
downloadpytqt-r14.1.4.tar.gz
pytqt-r14.1.4.zip
Replace TRUE/FALSE with boolean values true/falser14.1.4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 6cbdd25dc4c6b0987636b37b2046b1b9464e3d60)
Diffstat (limited to 'pytquic3/domtool.cpp')
-rw-r--r--pytquic3/domtool.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/pytquic3/domtool.cpp b/pytquic3/domtool.cpp
index 740088e..f37866c 100644
--- a/pytquic3/domtool.cpp
+++ b/pytquic3/domtool.cpp
@@ -80,10 +80,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 )
@@ -180,7 +180,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() );
@@ -334,10 +334,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 )