From 003561fa5af27c5b835d8903d63238a334ff9ca0 Mon Sep 17 00:00:00 2001
From: Slávek Banko <slavek.banko@axis.cz>
Date: Thu, 1 Jan 2026 11:18:16 +0100
Subject: Replace TRUE/FALSE with boolean values true/false. Finishing the
 remaining renames from #31.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
---
 PerlTQt/handlers.cpp    |  4 +--
 PerlTQt/smokeperl.cpp   |  6 ++---
 puic/object.cpp         |  4 +--
 puic/uic.cpp            |  6 ++---
 puic/widgetdatabase.cpp | 72 ++++++++++++++++++++++++-------------------------
 5 files changed, 46 insertions(+), 46 deletions(-)

diff --git a/PerlTQt/handlers.cpp b/PerlTQt/handlers.cpp
index 94bdc09..114cf5b 100644
--- a/PerlTQt/handlers.cpp
+++ b/PerlTQt/handlers.cpp
@@ -367,7 +367,7 @@ static void marshall_basetype(Marshall *m) {
 		    o.allocated = true;
 
 		char *buf = m->smoke()->binding->className(m->type().classId());
-		sv_bless(obj, gv_stashpv(buf, TRUE));
+		sv_bless(obj, gv_stashpv(buf, GV_ADD));
                 delete[] buf;
 		if(m->type().isConst() && m->type().isRef()) {
 		    p = construct_copy( &o );
@@ -1100,7 +1100,7 @@ void marshall_TQRgb_array(Marshall *m) {
           o.ptr = (void*)t;                                        \
           o.allocated = IS_STACK;                                  \
                                                                    \
-          sv_bless(obj, gv_stashpv( PCLASS, TRUE));                \
+          sv_bless(obj, gv_stashpv( PCLASS, GV_ADD));              \
                                                                    \
           if(m->type().isConst() && m->type().isRef()) {           \
               void* p = construct_copy( &o );                      \
diff --git a/PerlTQt/smokeperl.cpp b/PerlTQt/smokeperl.cpp
index 1998c85..d45c658 100644
--- a/PerlTQt/smokeperl.cpp
+++ b/PerlTQt/smokeperl.cpp
@@ -43,11 +43,11 @@ private:
     HV *package(const SmokeClass &c) {
 	// for now, we cheat on the class names by assuming they're all TQt::
 	if(!strcmp(c.className(), "TQt"))
-	    return gv_stashpv(c.className(), TRUE);
+	    return gv_stashpv(c.className(), GV_ADD);
 
 	SV *name = newSVpv("TQt::", 0);
 	sv_catpv(name, c.className() + 1);
-	HV *stash = gv_stashpv(SvPV_nolen(name), TRUE);
+	HV *stash = gv_stashpv(SvPV_nolen(name), GV_ADD);
 	SvREFCNT_dec(name);
 
 	return stash;
@@ -289,7 +289,7 @@ public:
 	}
 	HV *stash = SvSTASH(SvRV(obj));
 	if(*HvNAME(stash) == ' ')
-	    stash = gv_stashpv(HvNAME(stash) + 1, TRUE);
+	    stash = gv_stashpv(HvNAME(stash) + 1, GV_ADD);
 	const char *methodName = smoke->methodNames[smoke->methods[method].name];
 	GV *gv = gv_fetchmethod_autoload(stash, methodName, 0);
 	if(!gv) return false;
diff --git a/puic/object.cpp b/puic/object.cpp
index 0791e70..4be722a 100644
--- a/puic/object.cpp
+++ b/puic/object.cpp
@@ -629,12 +629,12 @@ TQString Uic::setObjectProperty( const TQString& objClass, const TQString& obj,
 	    TQString palette = "pal";
 	    if ( !pal_used ) {
 		out << indent << palette << " = TQt::Palette();" << endl;
-		pal_used = TRUE;
+		pal_used = true;
 	    }
 	    TQString cg = "cg";
 	    if ( !cg_used ) {
 		out << indent << cg << " = TQt::ColorGroup();" << endl;
-		cg_used = TRUE;
+		cg_used = true;
 	    }
 	    n = e.firstChild().toElement();
 	    while ( !n.isNull() && n.tagName() != "active" )
diff --git a/puic/uic.cpp b/puic/uic.cpp
index db6f70a..52df2a8 100644
--- a/puic/uic.cpp
+++ b/puic/uic.cpp
@@ -147,7 +147,7 @@ Uic::Uic( const TQString &fn, const char *outputFn, TQTextStream &outStream,
     writeFunctImpl = true;
     defMargin = BOXLAYOUT_DEFAULT_MARGIN;
     defSpacing = BOXLAYOUT_DEFAULT_SPACING;
-    externPixmaps = FALSE;
+    externPixmaps = false;
 
     item_used = cg_used = pal_used = 0;
 
@@ -168,7 +168,7 @@ Uic::Uic( const TQString &fn, const char *outputFn, TQTextStream &outStream,
 	if ( e.tagName() == "widget" ) {
 	    widget = e;
 	} else if ( e.tagName() == "pixmapinproject" ) {
-	    externPixmaps = TRUE;
+	    externPixmaps = true;
 	} else if ( e.tagName() == "layoutdefaults" ) {
 	    defSpacing = e.attribute( "spacing", defSpacing.toString() );
 	    defMargin = e.attribute( "margin", defMargin.toString() );
@@ -614,7 +614,7 @@ TQString Uic::createListViewItemImpl( const TQDomElement &e, const TQString &par
 	    s = indent + item + " = ";
 	else
 	    s = indent + "my " + item + " = ";
-	item_used = TRUE;
+	item_used = true;
     }
 
     if ( !parentItem.isEmpty() )
diff --git a/puic/widgetdatabase.cpp b/puic/widgetdatabase.cpp
index 03fa2a8..a25c073 100644
--- a/puic/widgetdatabase.cpp
+++ b/puic/widgetdatabase.cpp
@@ -57,12 +57,12 @@ TQCleanupHandler<TQPluginManager<WidgetInterface> > cleanup_manager;
 
 WidgetDatabaseRecord::WidgetDatabaseRecord()
 {
-    isForm = FALSE;
-    isContainer = FALSE;
+    isForm = false;
+    isContainer = false;
     icon = 0;
     nameCounter = 0;
-    isCommon = FALSE;
-    isPlugin = FALSE;
+    isCommon = false;
+    isPlugin = false;
 }
 
 WidgetDatabaseRecord::~WidgetDatabaseRecord()
@@ -131,7 +131,7 @@ void WidgetDatabase::setupDataBase( int id )
     r->name = "TQPushButton";
     r->group = widgetGroup( "Buttons" );
     r->toolTip = "Push Button";
-    r->isCommon = TRUE;
+    r->isCommon = true;
 
     append( r );
 
@@ -148,7 +148,7 @@ void WidgetDatabase::setupDataBase( int id )
     r->name = "TQRadioButton";
     r->group = widgetGroup( "Buttons" );
     r->toolTip = "Radio Button";
-    r->isCommon = TRUE;
+    r->isCommon = true;
 
     append( r );
 
@@ -157,7 +157,7 @@ void WidgetDatabase::setupDataBase( int id )
     r->name = "TQCheckBox";
     r->group = widgetGroup( "Buttons" );
     r->toolTip = "Check Box";
-    r->isCommon = TRUE;
+    r->isCommon = true;
 
     append( r );
 
@@ -166,7 +166,7 @@ void WidgetDatabase::setupDataBase( int id )
     r->name = "TQGroupBox";
     r->group = widgetGroup( "Containers" );
     r->toolTip = "Group Box";
-    r->isContainer = TRUE;
+    r->isContainer = true;
 
     append( r );
 
@@ -175,8 +175,8 @@ void WidgetDatabase::setupDataBase( int id )
     r->name = "TQButtonGroup";
     r->group = widgetGroup( "Containers" );
     r->toolTip = "Button Group";
-    r->isContainer = TRUE;
-    r->isCommon = TRUE;
+    r->isContainer = true;
+    r->isCommon = true;
 
     append( r );
 
@@ -185,7 +185,7 @@ void WidgetDatabase::setupDataBase( int id )
     r->name = "TQFrame";
     r->group = widgetGroup( "Containers" );
     r->toolTip = "Frame";
-    r->isContainer = TRUE;
+    r->isContainer = true;
 
     append( r );
 
@@ -194,7 +194,7 @@ void WidgetDatabase::setupDataBase( int id )
     r->name = "TQTabWidget";
     r->group = widgetGroup( "Containers" );
     r->toolTip = "Tabwidget";
-    r->isContainer = TRUE;
+    r->isContainer = true;
 
     append( r );
 
@@ -203,7 +203,7 @@ void WidgetDatabase::setupDataBase( int id )
     r->name = "TQWidgetStack";
     r->group = widgetGroup( "Containers" );
     r->toolTip = "Widget Stack";
-    r->isContainer = TRUE;
+    r->isContainer = true;
 
     append( r );
 
@@ -212,7 +212,7 @@ void WidgetDatabase::setupDataBase( int id )
     r->name = "TQToolBox";
     r->group = widgetGroup( "Containers" );
     r->toolTip = "Tool Box";
-    r->isContainer = TRUE;
+    r->isContainer = true;
 
     append( r );
 
@@ -221,7 +221,7 @@ void WidgetDatabase::setupDataBase( int id )
     r->name = "TQListBox";
     r->group = widgetGroup( "Views" );
     r->toolTip = "List Box";
-    r->isCommon = TRUE;
+    r->isCommon = true;
 
     append( r );
 
@@ -269,7 +269,7 @@ void WidgetDatabase::setupDataBase( int id )
     r->name = "TQLineEdit";
     r->group = widgetGroup( "Input" );
     r->toolTip = "Line Edit";
-    r->isCommon = TRUE;
+    r->isCommon = true;
 
     append( r );
 
@@ -278,7 +278,7 @@ void WidgetDatabase::setupDataBase( int id )
     r->name = "TQSpinBox";
     r->group = widgetGroup( "Input" );
     r->toolTip = "Spin Box";
-    r->isCommon = TRUE;
+    r->isCommon = true;
 
     append( r );
 
@@ -322,7 +322,7 @@ void WidgetDatabase::setupDataBase( int id )
     r->name = "TQTextEdit";
     r->group = widgetGroup( "Input" );
     r->toolTip = "Rich Text Edit";
-    r->isCommon = TRUE;
+    r->isCommon = true;
 
     append( r );
 
@@ -331,7 +331,7 @@ void WidgetDatabase::setupDataBase( int id )
     r->name = "TQComboBox";
     r->group = widgetGroup( "Input" );
     r->toolTip = "Combo Box";
-    r->isCommon = TRUE;
+    r->isCommon = true;
 
     append( r );
 
@@ -373,7 +373,7 @@ void WidgetDatabase::setupDataBase( int id )
     r->group = widgetGroup( "Display" );
     r->toolTip = "Text Label";
     r->whatsThis = "The Text Label provides a widget to display static text.";
-    r->isCommon = TRUE;
+    r->isCommon = true;
 
     append( r );
 
@@ -439,7 +439,7 @@ void WidgetDatabase::setupDataBase( int id )
 
     r = new WidgetDatabaseRecord;
     r->name = "TQWidget";
-    r->isForm = TRUE;
+    r->isForm = true;
     r->group = widgetGroup( "Forms" );
 
     append( r );
@@ -447,21 +447,21 @@ void WidgetDatabase::setupDataBase( int id )
     r = new WidgetDatabaseRecord;
     r->name = "TQDialog";
     r->group = widgetGroup( "Forms" );
-    r->isForm = TRUE;
+    r->isForm = true;
 
     append( r );
 
     r = new WidgetDatabaseRecord;
     r->name = "TQWizard";
     r->group = widgetGroup( "Forms" );
-    r->isContainer = TRUE;
+    r->isContainer = true;
 
     append( r );
 
     r = new WidgetDatabaseRecord;
     r->name = "TQDesignerWizard";
     r->group = widgetGroup( "Forms" );
-    r->isContainer = TRUE;
+    r->isContainer = true;
 
     append( r );
 
@@ -469,7 +469,7 @@ void WidgetDatabase::setupDataBase( int id )
     r->name = "TQLayoutWidget";
     r->group = widgetGroup( "Temp" );
     r->includeFile = "";
-    r->isContainer = TRUE;
+    r->isContainer = true;
 
     append( r );
 
@@ -477,7 +477,7 @@ void WidgetDatabase::setupDataBase( int id )
     r->name = "TQSplitter";
     r->group = widgetGroup( "Temp" );
     r->includeFile = "qsplitter.h";
-    r->isContainer = TRUE;
+    r->isContainer = true;
 
     append( r );
 
@@ -485,7 +485,7 @@ void WidgetDatabase::setupDataBase( int id )
     r->iconSet = "designer_tabwidget.png";
     r->name = "TQDesignerTabWidget";
     r->group = widgetGroup( "Temp" );
-    r->isContainer = TRUE;
+    r->isContainer = true;
 
     append( r );
 
@@ -493,7 +493,7 @@ void WidgetDatabase::setupDataBase( int id )
     r->iconSet = "designer_tabwidget.png";
     r->name = "TQDesignerWidget";
     r->group = widgetGroup( "Temp" );
-    r->isContainer = TRUE;
+    r->isContainer = true;
 
     append( r );
 
@@ -501,7 +501,7 @@ void WidgetDatabase::setupDataBase( int id )
     r->iconSet = "designer_tabwidget.png";
     r->name = "TQDesignerDialog";
     r->group = widgetGroup( "Temp" );
-    r->isContainer = TRUE;
+    r->isContainer = true;
 
     append( r );
 
@@ -510,7 +510,7 @@ void WidgetDatabase::setupDataBase( int id )
     r->name = "TQMainWindow";
     r->includeFile = "qmainwindow.h";
     r->group = widgetGroup( "Temp" );
-    r->isContainer = TRUE;
+    r->isContainer = true;
 
     append( r );
 
@@ -519,7 +519,7 @@ void WidgetDatabase::setupDataBase( int id )
     r->name = "TQDesignerAction";
     r->includeFile = "qaction.h";
     r->group = widgetGroup( "Temp" );
-    r->isContainer = FALSE;
+    r->isContainer = false;
 
     append( r );
 
@@ -528,7 +528,7 @@ void WidgetDatabase::setupDataBase( int id )
     r->name = "TQDesignerActionGroup";
     r->includeFile = "qaction.h";
     r->group = widgetGroup( "Temp" );
-    r->isContainer = FALSE;
+    r->isContainer = false;
 
     append( r );
 
@@ -537,7 +537,7 @@ void WidgetDatabase::setupDataBase( int id )
     r->name = "TQScrollView";
     r->includeFile = "qscrollview.h";
     r->group = widgetGroup( "Temp" );
-    r->isContainer = TRUE;
+    r->isContainer = true;
 
     append( r );
 
@@ -549,7 +549,7 @@ void WidgetDatabase::setupDataBase( int id )
     r->group = widgetGroup( "Database" );
     r->toolTip = "Data Browser";
     r->iconSet = "designer_databrowser.png";
-    r->isContainer = TRUE;
+    r->isContainer = true;
 
     append( r );
 
@@ -560,7 +560,7 @@ void WidgetDatabase::setupDataBase( int id )
     r->group = widgetGroup( "Database" );
     r->toolTip = "Data View";
     r->iconSet = "designer_dataview.png";
-    r->isContainer = TRUE;
+    r->isContainer = true;
 
     append( r );
 #endif
@@ -599,7 +599,7 @@ void WidgetDatabase::setupPlugins()
 	r->includeFile = iface->includeFile( *it );
 	r->isContainer = iface->isContainer( *it );
 	r->name = *it;
-	r->isPlugin = TRUE;
+	r->isPlugin = true;
 	append( r );
 	iface->release();
     }
-- 
cgit v1.2.3

