summaryrefslogtreecommitdiffstats
path: root/puic/object.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-04-02 13:19:40 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-04-02 13:19:41 +0900
commitf3c7a90bfa0646afefeaa7af84edf625cdadf78d (patch)
tree2b3194f56e43728f5bfdb95d7c78b71694d55497 /puic/object.cpp
parent0e72ac24e5ebb8c31003af380befd215e7509ce1 (diff)
downloadlibtqt-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/object.cpp')
-rw-r--r--puic/object.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/puic/object.cpp b/puic/object.cpp
index ccc4785..0791e70 100644
--- a/puic/object.cpp
+++ b/puic/object.cpp
@@ -97,7 +97,7 @@ void Uic::createAttrDecl( const TQDomElement& e )
\sa createObjectDecl()
*/
-static bool createdCentralWidget = FALSE;
+static bool createdCentralWidget = false;
TQString Uic::createObjectImpl( const TQDomElement &e, const TQString& parentClass, const TQString& par, const TQString& layout )
{
@@ -105,7 +105,7 @@ TQString Uic::createObjectImpl( const TQDomElement &e, const TQString& parentCla
if ( parent == "this" && isMainWindow ) {
if ( !createdCentralWidget )
out << indent << "setCentralWidget(TQt::Widget(this, \"qt_central_widget\"));" << endl;
- createdCentralWidget = TRUE;
+ createdCentralWidget = true;
parent = "centralWidget()";
}
TQDomElement n;
@@ -172,7 +172,7 @@ TQString Uic::createObjectImpl( const TQDomElement &e, const TQString& parentCla
lastItem = "undef";
// 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;
@@ -187,7 +187,7 @@ TQString Uic::createObjectImpl( const TQDomElement &e, const TQString& parentCla
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;