summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-03-22 13:43:19 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-03-22 13:43:19 +0900
commit26a93b0fbb3c81e4aa011fc49cd88444b8edc0bd (patch)
tree696cf670dc8e1aa2d0e6f1279dc27aa4ac3b7f1f
parent431ea961e243333304fd0edb9785689e280da331 (diff)
downloadktorrent-rename/true-false.tar.gz
ktorrent-rename/true-false.zip
Replace TRUE/FALSE with boolean values true/falserename/true-false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--src/apps/ktorrent/ktorrentcore.cpp2
-rw-r--r--src/apps/ktorrent/ktorrentview.cpp4
-rw-r--r--src/libktorrent/interfaces/ipblockinginterface.h2
-rw-r--r--src/libktorrent/torrent/announcelist.h2
-rw-r--r--src/libktorrent/torrent/ipblocklist.h4
-rw-r--r--src/plugins/ipfilter/antip2p.h4
-rw-r--r--src/plugins/ipfilter/ktipfilterplugin.kcfg2
-rw-r--r--src/plugins/partfileimport/importdialog.h2
-rw-r--r--src/plugins/scanfolder/ktscanfolderplugin.kcfg12
-rw-r--r--src/plugins/scheduler/bwswidget.h2
-rw-r--r--src/plugins/scheduler/ktschedulerplugin.kcfg4
11 files changed, 20 insertions, 20 deletions
diff --git a/src/apps/ktorrent/ktorrentcore.cpp b/src/apps/ktorrent/ktorrentcore.cpp
index c2aacf4..6ac9426 100644
--- a/src/apps/ktorrent/ktorrentcore.cpp
+++ b/src/apps/ktorrent/ktorrentcore.cpp
@@ -212,7 +212,7 @@ bool KTorrentCore::init(TorrentControl* tc,bool silently)
try
{
- bt::CopyFile(torFile, destination, TRUE);
+ bt::CopyFile(torFile, destination, true);
}
catch(bt::Error& err)
{
diff --git a/src/apps/ktorrent/ktorrentview.cpp b/src/apps/ktorrent/ktorrentview.cpp
index 4d3983b..15e1d83 100644
--- a/src/apps/ktorrent/ktorrentview.cpp
+++ b/src/apps/ktorrent/ktorrentview.cpp
@@ -811,13 +811,13 @@ void KTorrentView::speedLimits()
void KTorrentView::columnHide(int index)
{
view->hideColumn(index);
- view->header()->setResizeEnabled(FALSE, index);
+ view->header()->setResizeEnabled(false, index);
}
void KTorrentView::columnShow(int index)
{
view->setColumnWidth(index, 100);
- view->header()->setResizeEnabled(TRUE, index);
+ view->header()->setResizeEnabled(true, index);
}
bool KTorrentView::columnVisible(int index)
diff --git a/src/libktorrent/interfaces/ipblockinginterface.h b/src/libktorrent/interfaces/ipblockinginterface.h
index 87a544c..f281d2c 100644
--- a/src/libktorrent/interfaces/ipblockinginterface.h
+++ b/src/libktorrent/interfaces/ipblockinginterface.h
@@ -40,7 +40,7 @@ namespace kt
/**
* This function checks if IP is listed in antip2p filter list.
- * @return TRUE if IP should be blocked. FALSE otherwise
+ * @return true if IP should be blocked. false otherwise
* @arg ip String representation of IP address.
*/
virtual bool isBlockedIP(const TQString& ip) = 0;
diff --git a/src/libktorrent/torrent/announcelist.h b/src/libktorrent/torrent/announcelist.h
index 3cb9edd..b843e56 100644
--- a/src/libktorrent/torrent/announcelist.h
+++ b/src/libktorrent/torrent/announcelist.h
@@ -67,7 +67,7 @@ namespace bt
/**
* Removes a tracker from the list
* @param url Tracker URL to remove from custom trackers list.
- * @returns TRUE if URL is in custom list and it is removed or FALSE if it could not be removed or it's a default tracker
+ * @returns true if URL is in custom list and it is removed or false if it could not be removed or it's a default tracker
*/
bool removeTracker(KURL url);
diff --git a/src/libktorrent/torrent/ipblocklist.h b/src/libktorrent/torrent/ipblocklist.h
index a6a0008..0253826 100644
--- a/src/libktorrent/torrent/ipblocklist.h
+++ b/src/libktorrent/torrent/ipblocklist.h
@@ -160,13 +160,13 @@ namespace bt
/**
* Checks if IP is listed in local database (IPBlocklist::m_peers)
- * @return TRUE if IP is to be blocked
+ * @return true if IP is to be blocked
*/
bool isBlockedLocal(const TQString& ip);
/**
* Checks if IP is listed in plugins antip2p file
- * @return TRUE if IP is to be blocked
+ * @return true if IP is to be blocked
*/
bool isBlockedPlugin(const TQString& ip);
};
diff --git a/src/plugins/ipfilter/antip2p.h b/src/plugins/ipfilter/antip2p.h
index ce54c53..4c3cf7e 100644
--- a/src/plugins/ipfilter/antip2p.h
+++ b/src/plugins/ipfilter/antip2p.h
@@ -69,7 +69,7 @@ namespace kt
/**
* Checks if specified IP is listed in filter file.
- * @return TRUE if IP should be blocked, FALSE otherwise
+ * @return true if IP should be blocked, false otherwise
* @param ip TQString representation of IP to be checked
**/
bool isBlockedIP(const TQString& ip);
@@ -108,7 +108,7 @@ namespace kt
/**
* Binary searches AntiP2P::file to find IP.
- * @returns TRUE if IP should be blocked FALSE otherwise
+ * @returns true if IP should be blocked false otherwise
**/
bool searchFile(IPBlock* file_blocks, bt::Uint32& ip, int start, int end);
diff --git a/src/plugins/ipfilter/ktipfilterplugin.kcfg b/src/plugins/ipfilter/ktipfilterplugin.kcfg
index 18ab419..6130189 100644
--- a/src/plugins/ipfilter/ktipfilterplugin.kcfg
+++ b/src/plugins/ipfilter/ktipfilterplugin.kcfg
@@ -12,7 +12,7 @@
</entry>
<entry name="useLevel1" type="Bool">
<label>Use level1 filter?</label>
- <default>FALSE</default>
+ <default>false</default>
</entry>
</group>
</kcfg>
diff --git a/src/plugins/partfileimport/importdialog.h b/src/plugins/partfileimport/importdialog.h
index c422da8..aab0438 100644
--- a/src/plugins/partfileimport/importdialog.h
+++ b/src/plugins/partfileimport/importdialog.h
@@ -49,7 +49,7 @@ namespace kt
public:
- ImportDialog(CoreInterface* core,TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+ ImportDialog(CoreInterface* core,TQWidget* parent = 0, const char* name = 0, bool modal = false, WFlags fl = 0 );
virtual ~ImportDialog();
public slots:
diff --git a/src/plugins/scanfolder/ktscanfolderplugin.kcfg b/src/plugins/scanfolder/ktscanfolderplugin.kcfg
index f9b919f..98e8099 100644
--- a/src/plugins/scanfolder/ktscanfolderplugin.kcfg
+++ b/src/plugins/scanfolder/ktscanfolderplugin.kcfg
@@ -7,17 +7,17 @@
<group name="general">
<entry name="useFolder1" type="Bool">
<label>Enable scanning of folder1?</label>
- <default>FALSE</default>
+ <default>false</default>
</entry>
<entry name="useFolder2" type="Bool">
<label>Enable scanning of folder2?</label>
- <default>FALSE</default>
+ <default>false</default>
</entry>
<entry name="useFolder3" type="Bool">
<label>Enable scanning of folder3?</label>
- <default>FALSE</default>
+ <default>false</default>
</entry>
<entry name="folder1" type="String">
@@ -37,17 +37,17 @@
<entry name="openSilently" type="Bool">
<label>Whether to open torrent silently or not.</label>
- <default>FALSE</default>
+ <default>false</default>
</entry>
<entry name="actionDelete" type="Bool">
<label>Delete action checked.</label>
- <default>FALSE</default>
+ <default>false</default>
</entry>
<entry name="actionMove" type="Bool">
<label>Move action checked.</label>
- <default>FALSE</default>
+ <default>false</default>
</entry>
</group>
</kcfg>
diff --git a/src/plugins/scheduler/bwswidget.h b/src/plugins/scheduler/bwswidget.h
index 9cb36ae..a6770aa 100644
--- a/src/plugins/scheduler/bwswidget.h
+++ b/src/plugins/scheduler/bwswidget.h
@@ -63,7 +63,7 @@ namespace kt
/**
* Sets cell paint type.
- * @param color TRUE - paints colors. FALSE - paints pixmaps.
+ * @param color true - paints colors. false - paints pixmaps.
*/
void setType(bool color);
diff --git a/src/plugins/scheduler/ktschedulerplugin.kcfg b/src/plugins/scheduler/ktschedulerplugin.kcfg
index 7f752b3..aca172d 100644
--- a/src/plugins/scheduler/ktschedulerplugin.kcfg
+++ b/src/plugins/scheduler/ktschedulerplugin.kcfg
@@ -8,11 +8,11 @@
<group name="general">
<entry name="enableBWS" type="Bool">
<label>Enable bandwidth scheduler?</label>
- <default>FALSE</default>
+ <default>false</default>
</entry>
<entry name="useColors" type="Bool">
<label>Use colors instead of pixmaps?</label>
- <default>FALSE</default>
+ <default>false</default>
</entry>
</group>
</kcfg>