From a7f1e6e2552d9cdbb3d76bff089db522248b9a24 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 30 May 2025 14:27:29 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 1 Signed-off-by: Michele Calgaro --- tools/designer/tquic/object.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tools/designer/tquic/object.cpp') diff --git a/tools/designer/tquic/object.cpp b/tools/designer/tquic/object.cpp index 0ef19843f..c32176435 100644 --- a/tools/designer/tquic/object.cpp +++ b/tools/designer/tquic/object.cpp @@ -88,7 +88,7 @@ void TQUic::createObjectDecl( const TQDomElement& e ) \sa createObjectDecl() */ -static bool createdCentralWidget = FALSE; +static bool createdCentralWidget = false; TQString TQUic::createObjectImpl( const TQDomElement &e, const TQString& parentClass, const TQString& par, const TQString& layout ) { @@ -96,7 +96,7 @@ TQString TQUic::createObjectImpl( const TQDomElement &e, const TQString& parentC if ( parent == "this" && isMainWindow ) { if ( !createdCentralWidget ) out << indent << "setCentralWidget( new TQWidget( this, \"qt_central_widget\" ) );" << endl; - createdCentralWidget = TRUE; + createdCentralWidget = true; parent = "centralWidget()"; } TQDomElement n; @@ -153,7 +153,7 @@ TQString TQUic::createObjectImpl( const TQDomElement &e, const TQString& parentC lastItem = "0"; // set the properties and insert items - bool hadFrameShadow = FALSE; + bool hadFrameShadow = false; for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { if ( n.tagName() == "property" ) { bool stdset = stdsetdef; @@ -168,7 +168,7 @@ TQString TQUic::createObjectImpl( const TQDomElement &e, const TQString& parentC if ( prop == "name" ) continue; if ( isLine && prop == "frameShadow" ) - hadFrameShadow = TRUE; + hadFrameShadow = true; if ( prop == "buddy" && value.startsWith("\"") && value.endsWith("\"") ) { buddies << Buddy( objName, value.mid(1, value.length() - 2 ) ); continue; @@ -617,12 +617,12 @@ TQString TQUic::setObjectProperty( const TQString& objClass, const TQString& obj TQString palette = "pal"; if ( !pal_used ) { out << indent << "TQPalette " << palette << ";" << endl; - pal_used = TRUE; + pal_used = true; } TQString cg = "cg"; if ( !cg_used ) { out << indent << "TQColorGroup " << cg << ";" << endl; - cg_used = TRUE; + cg_used = true; } n = e.firstChild().toElement(); while ( !n.isNull() && n.tagName() != "active" ) -- cgit v1.2.3