summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/shared/domtool.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-04-08 12:59:07 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-04-10 12:35:00 +0900
commit5198c9d3ac02aa9c7949f49e3cf374f683facb18 (patch)
tree6b2429d827560c3abd4ae62a941d84ceebaa7a3b /kdevdesigner/shared/domtool.cpp
parent8c206b21c4f83d07c23d59989988291cfee38009 (diff)
downloadtdevelop-5198c9d3ac02aa9c7949f49e3cf374f683facb18.tar.gz
tdevelop-5198c9d3ac02aa9c7949f49e3cf374f683facb18.zip
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kdevdesigner/shared/domtool.cpp')
-rw-r--r--kdevdesigner/shared/domtool.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kdevdesigner/shared/domtool.cpp b/kdevdesigner/shared/domtool.cpp
index ec79ffad..828d9d70 100644
--- a/kdevdesigner/shared/domtool.cpp
+++ b/kdevdesigner/shared/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().ascii() ) );
} 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 )