From 76c67c49ce863d214f4a365b443663597e4f6ff9 Mon Sep 17 00:00:00 2001
From: Michele Calgaro <michele.calgaro@yahoo.it>
Date: Sun, 16 Mar 2025 14:46:59 +0900
Subject: Replace TRUE/FALSE with boolean values true/false

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
---
 ConfigureChecks.cmake                         |  2 +-
 src/ksvnwidgets/depthselector.cpp             |  2 +-
 src/ksvnwidgets/logmsg_impl.cpp               |  2 +-
 src/svnfrontend/fronthelpers/propertylist.cpp |  2 +-
 src/svnfrontend/propertiesdlg.cpp             |  8 ++++----
 src/svnqt/cache/sqlite3/qsql_sqlite3.cpp      | 10 +++++-----
 src/svnqt/client.h                            |  2 +-
 src/svnqt/client_impl.cpp                     |  2 +-
 src/svnqt/client_impl.h                       |  2 +-
 src/svnqt/diff_data.cpp                       |  4 ++--
 src/svnqt/entry.h                             |  2 +-
 src/svnqt/status.h                            | 12 ++++++------
 src/svnqt/wc.cpp                              |  4 ++--
 src/tdeiosvn/tdeiolistener.cpp                | 14 +++++++-------
 14 files changed, 34 insertions(+), 34 deletions(-)

diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index ac26c4d..a6589c6 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -434,4 +434,4 @@ else (NOT SUBVERSION_WCLIB)
 endif(NOT SUBVERSION_WCLIB)
 
 
-set(SUBVERSIONFOUND true)
+set(SUBVERSIONFOUND TRUE)
diff --git a/src/ksvnwidgets/depthselector.cpp b/src/ksvnwidgets/depthselector.cpp
index 78c1a7d..512e8c2 100644
--- a/src/ksvnwidgets/depthselector.cpp
+++ b/src/ksvnwidgets/depthselector.cpp
@@ -39,7 +39,7 @@ DepthSelector::DepthSelector(TQWidget *parent, const char *name)
         m_DepthCombo=0;
         DepthFormLayout->removeItem(m_leftspacer);
         m_recurse = new TQCheckBox( this, "m_RecursiveButton" );
-        m_recurse->setChecked( TRUE );
+        m_recurse->setChecked( true );
         m_recurse->setText(i18n( "Recursive" ));
         DepthFormLayout->addWidget( m_recurse );
         m_recurse->setSizePolicy(TQSizePolicy::Fixed,TQSizePolicy::Fixed);
diff --git a/src/ksvnwidgets/logmsg_impl.cpp b/src/ksvnwidgets/logmsg_impl.cpp
index f8ce4c7..f4debfb 100644
--- a/src/ksvnwidgets/logmsg_impl.cpp
+++ b/src/ksvnwidgets/logmsg_impl.cpp
@@ -487,7 +487,7 @@ Logmsg_impl::logActionEntry::logActionEntry()
 SvnCheckListItem::SvnCheckListItem(TQListView*parent,const Logmsg_impl::logActionEntry&content)
     :TQCheckListItem(parent,content._name,TQCheckListItem::CheckBox),m_Content(content)
 {
-    setTristate(FALSE);
+    setTristate(false);
     setText(1,m_Content._actionDesc);
     if (content._name.isEmpty()) {
         setText(0,"...");
diff --git a/src/svnfrontend/fronthelpers/propertylist.cpp b/src/svnfrontend/fronthelpers/propertylist.cpp
index 7503b08..3c09c39 100644
--- a/src/svnfrontend/fronthelpers/propertylist.cpp
+++ b/src/svnfrontend/fronthelpers/propertylist.cpp
@@ -39,7 +39,7 @@ Propertylist::Propertylist(TQWidget *parent, const char *name)
 
     connect(this,TQ_SIGNAL(contextMenuRequested(TQListViewItem *, const TQPoint &, int)),this,
             TQ_SLOT(slotContextMenuRequested(TQListViewItem *, const TQPoint &, int)));
-    //setFullWidth( TRUE );
+    //setFullWidth( true );
 }
 
 
diff --git a/src/svnfrontend/propertiesdlg.cpp b/src/svnfrontend/propertiesdlg.cpp
index 45b74b3..1060363 100644
--- a/src/svnfrontend/propertiesdlg.cpp
+++ b/src/svnfrontend/propertiesdlg.cpp
@@ -42,7 +42,7 @@
  *  name 'name' and widget flags set to 'f'.
  *
  *  The dialog will by default be modeless, unless you set 'modal' to
- *  TRUE to construct a modal dialog.
+ *  true to construct a modal dialog.
  */
 PropertiesDlg::PropertiesDlg(SvnItem*which, svn::Client*aClient, const svn::Revision&aRev, TQWidget* parent, const char* name, bool modal)
     :
@@ -57,14 +57,14 @@ PropertiesDlg::PropertiesDlg(SvnItem*which, svn::Client*aClient, const svn::Revi
     PropertiesDlgLayout = new TQHBoxLayout(m, marginHint(), spacingHint(), "PropertiesDlgLayout");
 
     m_PropertiesListview = new Propertylist(m, "m_PropertiesListview" );
-    m_PropertiesListview->setAllColumnsShowFocus( TRUE );
-    m_PropertiesListview->setShowSortIndicator( TRUE );
+    m_PropertiesListview->setAllColumnsShowFocus( true );
+    m_PropertiesListview->setShowSortIndicator( true );
     m_PropertiesListview->setCommitchanges(false);
     m_PropertiesListview->setItemsRenameable(true);
     m_PropertiesListview->setRenameable(0,true);
     m_PropertiesListview->setRenameable(1,true);
 
-    m_PropertiesListview->setFullWidth( TRUE );
+    m_PropertiesListview->setFullWidth( true );
     PropertiesDlgLayout->addWidget( m_PropertiesListview);
 
     m_rightLayout = new TQVBoxLayout(0, marginHint(), spacingHint(), "m_rightLayout");
diff --git a/src/svnqt/cache/sqlite3/qsql_sqlite3.cpp b/src/svnqt/cache/sqlite3/qsql_sqlite3.cpp
index 6160eae..69c3163 100644
--- a/src/svnqt/cache/sqlite3/qsql_sqlite3.cpp
+++ b/src/svnqt/cache/sqlite3/qsql_sqlite3.cpp
@@ -323,12 +323,12 @@ void TQSQLite3Driver::close()
 bool TQSQLite3Driver::ping()
 {
     if ( !isOpen() ) {
-        return FALSE;
+        return false;
     }
 
     // FIXME
     // Implement ping if available
-    return TRUE;
+    return true;
 }
 
 TQSqlQuery TQSQLite3Driver::createQuery() const
@@ -389,7 +389,7 @@ TQStringList TQSQLite3Driver::tables(const TQString &typeName) const
     int type = typeName.toInt();
 
     TQSqlQuery q = createQuery();
-    q.setForwardOnly(TRUE);
+    q.setForwardOnly(true);
     if ((type & (int)TQSql::Tables) && (type & (int)TQSql::Views))
         q.exec("SELECT name FROM sqlite_master WHERE type='table' OR type='view'");
     else if (typeName.isEmpty() || (type & (int)TQSql::Tables))
@@ -419,7 +419,7 @@ TQSqlIndex TQSQLite3Driver::primaryIndex(const TQString &tblname) const
         return TQSqlIndex();
 
     TQSqlQuery q = createQuery();
-    q.setForwardOnly(TRUE);
+    q.setForwardOnly(true);
     // finrst find a UNIQUE INDEX
     q.exec("PRAGMA index_list('" + tblname + "');");
     TQString indexname;
@@ -451,7 +451,7 @@ TQSqlRecordInfo TQSQLite3Driver::recordInfo(const TQString &tbl) const
         return TQSqlRecordInfo();
 
     TQSqlQuery q = createQuery();
-    q.setForwardOnly(TRUE);
+    q.setForwardOnly(true);
     q.exec("SELECT * FROM " + tbl + " LIMIT 1");
     return recordInfo(q);
 }
diff --git a/src/svnqt/client.h b/src/svnqt/client.h
index cdd6410..724507c 100644
--- a/src/svnqt/client.h
+++ b/src/svnqt/client.h
@@ -146,7 +146,7 @@ namespace svn
      * @param path File to gather status.
      * @param update if check against repository if new updates are there (for WC only)
      * @param revision list specific revision when browsing remote, on working copies parameter will ignored
-     * @return a Status with Statis.isVersioned = FALSE
+     * @return a Status with Statis.isVersioned = false
      */
     virtual StatusPtr
     singleStatus (const Path& path,bool update=false,const Revision revision = svn::Revision::HEAD)=0;
diff --git a/src/svnqt/client_impl.cpp b/src/svnqt/client_impl.cpp
index 431ca63..ced414c 100644
--- a/src/svnqt/client_impl.cpp
+++ b/src/svnqt/client_impl.cpp
@@ -52,7 +52,7 @@ apr_array_header_t* svn_sort__hash(apr_hash_t *ht,
   ary = apr_array_make(pool, apr_hash_count(ht), sizeof(svn_sort_item_type));
 
   /* loop over hash table and push all keys into the array */
-  sorted = TRUE;
+  sorted = true;
   prev_item = NULL;
   for (hi = apr_hash_first(pool, ht); hi; hi = apr_hash_next(hi))
 	{
diff --git a/src/svnqt/client_impl.h b/src/svnqt/client_impl.h
index 4aa5fc8..b7baadf 100644
--- a/src/svnqt/client_impl.h
+++ b/src/svnqt/client_impl.h
@@ -136,7 +136,7 @@ namespace svn
      * @param path File to gather status.
      * @param update if check against repository if new updates are there (for WC only)
      * @param revision list specific revision when browsing remote, on working copies parameter will ignored
-     * @return a Status with Statis.isVersioned = FALSE
+     * @return a Status with Statis.isVersioned = false
      */
     virtual StatusPtr
     singleStatus (const Path& path,bool update=false,const Revision revision = svn::Revision::HEAD);
diff --git a/src/svnqt/diff_data.cpp b/src/svnqt/diff_data.cpp
index 0559a8e..f9f21d8 100644
--- a/src/svnqt/diff_data.cpp
+++ b/src/svnqt/diff_data.cpp
@@ -50,7 +50,7 @@ namespace svn
         error = svn_io_open_unique_file (&m_outFile, &m_outFileName,
                         m_tmpPath.path().TOUTF8(),
                         ".tmp",
-                        FALSE, m_Pool);
+                        false, m_Pool);
 #endif
         if (error!=0) {
             clean();
@@ -65,7 +65,7 @@ namespace svn
         error = svn_io_open_unique_file (&m_errFile, &m_errFileName,
                         m_tmpPath.path().TOUTF8(),
                         ".tmp",
-                        FALSE, m_Pool);
+                        false, m_Pool);
 #endif
         if (error!=0) {
             clean();
diff --git a/src/svnqt/entry.h b/src/svnqt/entry.h
index ac0be46..8e8da87 100644
--- a/src/svnqt/entry.h
+++ b/src/svnqt/entry.h
@@ -131,7 +131,7 @@ namespace svn
     svn_wc_schedule_t
     schedule () const;
     /**
-     * @return TRUE if copied
+     * @return true if copied
      */
     bool
     isCopied () const;
diff --git a/src/svnqt/status.h b/src/svnqt/status.h
index 1111284..9f285ac 100644
--- a/src/svnqt/status.h
+++ b/src/svnqt/status.h
@@ -114,37 +114,37 @@ namespace svn
     propStatus () const;
 
     /**
-     * @retval TRUE if under version control
+     * @retval true if under version control
      */
     bool
     isVersioned () const;
 
     /**
-     * @retval TRUE if under version control and not ignored
+     * @retval true if under version control and not ignored
      */
     bool
     isRealVersioned()const;
 
     /**
-     * @retval TRUE if under version control and local modified
+     * @retval true if under version control and local modified
      */
     bool
     isModified()const;
 
     /**
-     * @retval TRUE if locked
+     * @retval true if locked
      */
     bool
     isLocked () const;
 
     /**
-     * @retval TRUE if copied
+     * @retval true if copied
      */
     bool
     isCopied () const;
 
     /**
-     * @retval TRUE if switched
+     * @retval true if switched
      */
     bool
     isSwitched () const;
diff --git a/src/svnqt/wc.cpp b/src/svnqt/wc.cpp
index 0dccb14..413fb10 100644
--- a/src/svnqt/wc.cpp
+++ b/src/svnqt/wc.cpp
@@ -86,11 +86,11 @@ namespace svn
     svn_error_t * error = 0;
     svn_wc_adm_access_t *adm_access;
     const svn_wc_entry_t *entry;
-    error = svn_wc_adm_probe_open2(&adm_access,0,itemPath.path().TOUTF8(),FALSE,0,pool);
+    error = svn_wc_adm_probe_open2(&adm_access,0,itemPath.path().TOUTF8(),false,0,pool);
     if (error!=0) {
         throw ClientException(error);
     }
-    error = svn_wc_entry(&entry,itemPath.path().TOUTF8(),adm_access,FALSE,pool);
+    error = svn_wc_entry(&entry,itemPath.path().TOUTF8(),adm_access,false,pool);
     if (error!=0) {
         throw ClientException(error);
     }
diff --git a/src/tdeiosvn/tdeiolistener.cpp b/src/tdeiosvn/tdeiolistener.cpp
index dc36588..287579d 100644
--- a/src/tdeiosvn/tdeiolistener.cpp
+++ b/src/tdeiosvn/tdeiolistener.cpp
@@ -125,7 +125,7 @@ void KioListener::contextNotify (const char * path,svn_wc_notify_action_t action
         case svn_wc_notify_copy: //copy
             break;
         case svn_wc_notify_delete: //delete
-            m_HasChanges = TRUE;
+            m_HasChanges = true;
             userstring = i18n( "D %1" ).arg( path );
             break;
         case svn_wc_notify_restore : //restore
@@ -147,11 +147,11 @@ void KioListener::contextNotify (const char * path,svn_wc_notify_action_t action
                 userstring=i18n("Skipped %1.").arg( path );
             break;
         case svn_wc_notify_update_delete: //update_delete
-            m_HasChanges = TRUE;
+            m_HasChanges = true;
             userstring=i18n( "D %1" ).arg( path );
             break;
         case svn_wc_notify_update_add: //update_add
-            m_HasChanges = TRUE;
+            m_HasChanges = true;
             userstring=i18n( "A %1" ).arg( path );
             break;
         case svn_wc_notify_update_update: //update_update
@@ -163,7 +163,7 @@ void KioListener::contextNotify (const char * path,svn_wc_notify_action_t action
                             && ((prop_state == svn_wc_notify_state_inapplicable)
                                 || (prop_state == svn_wc_notify_state_unknown)
                                 || (prop_state == svn_wc_notify_state_unchanged)))) {
-                    m_HasChanges = TRUE;
+                    m_HasChanges = true;
 
                     if (kind == svn_node_file) {
                         if (content_state == svn_wc_notify_state_conflicted)
@@ -208,10 +208,10 @@ void KioListener::contextNotify (const char * path,svn_wc_notify_action_t action
                 }
             }
             if (m_External)
-                m_External = FALSE;
+                m_External = false;
             break;
         case svn_wc_notify_update_external: //update_external
-            m_External = TRUE;
+            m_External = true;
             userstring = i18n("Fetching external item into %1." ).arg( path );
             break;
         case svn_wc_notify_status_completed: //status_completed
@@ -239,7 +239,7 @@ void KioListener::contextNotify (const char * path,svn_wc_notify_action_t action
             break;
         case svn_wc_notify_commit_postfix_txdelta: //commit_postfix_txdelta
             if (!m_FirstTxDelta) {
-                m_FirstTxDelta = TRUE;
+                m_FirstTxDelta = true;
 		// check fullstops!
                 userstring=i18n("Transmitting file data ");
             } else {
-- 
cgit v1.2.3

