summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-03-28 19:54:19 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-03-29 19:08:53 +0900
commit9f5e45d62fb3973dd26700bf103cf66362bae480 (patch)
treeb2340cd909a1a68dae2a124d38248c698a6ddcdf
parentab2c336a37c2faf3f010a0f3a040dd0b3059a58b (diff)
downloadkmyfirewall-9f5e45d62fb3973dd26700bf103cf66362bae480.tar.gz
kmyfirewall-9f5e45d62fb3973dd26700bf103cf66362bae480.zip
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--doc/en/index.docbook2
-rw-r--r--kmyfirewall/core/kmfapp.cpp4
-rw-r--r--kmyfirewall/core/kmfcheckinput.cpp8
-rw-r--r--kmyfirewall/ipteditor/kmfnewchaindlg.h2
-rw-r--r--kmyfirewall/ipteditor/kmfruleedit.cpp2
-rw-r--r--kmyfirewall/kmfwidgets/kmfchecklistoutput.h2
-rw-r--r--kmyfirewall/kmfwidgets/kmfdocumentinfo.h2
-rw-r--r--kmyfirewall/kmfwidgets/kmflistview.cpp2
-rw-r--r--kmyfirewall/kmfwidgets/kmfprocout.cpp2
-rw-r--r--kmyfirewall/kmfwidgets/kmfselectactivetarget.h2
-rw-r--r--kmyfirewall/kmfwidgets/kmftemplatechooser.h2
-rw-r--r--kmyfirewall/kmfwidgets/kmftqtdesignerplugin.cpp2
-rw-r--r--kmyfirewall/ruleoptionplugins/ip_option/kmfruleeditip.cpp2
-rw-r--r--kmyfirewall/ruleoptionplugins/mac_option/kmfruleeditmac.cpp2
14 files changed, 18 insertions, 18 deletions
diff --git a/doc/en/index.docbook b/doc/en/index.docbook
index 79eb15f..48a30f4 100644
--- a/doc/en/index.docbook
+++ b/doc/en/index.docbook
@@ -1278,7 +1278,7 @@ Author: Christian Hubinger &lt;chubinger@gmail.com&gt;, (C) 2001-2004
* 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.
*/
KMFRuleEditMac::KMFRuleEditMac( TQWidget* parent, const char* name, WFlags fl )
: KMyFirewallRuleEditorMac( parent, name, fl ) {
diff --git a/kmyfirewall/core/kmfapp.cpp b/kmyfirewall/core/kmfapp.cpp
index e217bf1..181a4e5 100644
--- a/kmyfirewall/core/kmfapp.cpp
+++ b/kmyfirewall/core/kmfapp.cpp
@@ -41,7 +41,7 @@ static TQLabel *splash = 0;
void set_splash_status( const TQString& msg ) {
if ( !splash )
return ;
- splash->repaint( FALSE );
+ splash->repaint( false );
TQPainter p( splash );
TQFont f( TDEGlobalSettings::generalFont().family(), 8, TQFont::Bold );
p.setFont( f );
@@ -75,7 +75,7 @@ void showSplash() {
splash->adjustSize();
splash->setFixedSize( splash->sizeHint() );
splash->move( screen.center() - TQPoint( splash->width() / 2, splash->height() / 2 ) );
- splash->repaint( FALSE );
+ splash->repaint( false );
splash->show();
set_splash_status( "Initializing..." );
TQApplication::flush();
diff --git a/kmyfirewall/core/kmfcheckinput.cpp b/kmyfirewall/core/kmfcheckinput.cpp
index 581f707..6b5503a 100644
--- a/kmyfirewall/core/kmfcheckinput.cpp
+++ b/kmyfirewall/core/kmfcheckinput.cpp
@@ -342,7 +342,7 @@ bool KMFCheckInput::checkNetWork ( TQString inp ) {
}
bool KMFCheckInput::checkFTQHN( TQString inp ) {
- bool valid = TRUE;
+ bool valid = true;
// TQRegExp exp( "^(\\w{1,256})\\.([a-z]{2,6})$", false );
TQRegExp exp( "^[0-9a-zA-Z_-\\.]{3,256}$", false );
if ( !inp.contains( exp ) )
@@ -351,7 +351,7 @@ bool KMFCheckInput::checkFTQHN( TQString inp ) {
}
bool KMFCheckInput::checkMAC( TQString inp ) {
- bool valid = TRUE;
+ bool valid = true;
TQRegExp exp( "^[0-9a-fA-F]{2,2}\\:[0-9a-fA-F]{2,2}\\:[0-9a-fA-F]{2,2}\\:[0-9a-fA-F]{2,2}\\:[0-9a-fA-F]{2,2}\\:[0-9a-fA-F]{2,2}$", false );
if ( !inp.contains( exp ) )
valid = false;
@@ -359,7 +359,7 @@ bool KMFCheckInput::checkMAC( TQString inp ) {
}
bool KMFCheckInput::checkChainName( TQString inp ) {
- bool valid = TRUE;
+ bool valid = true;
TQRegExp exp( "^[a-zA-Z0-9_]{1,29}$", false );
if ( !inp.contains( exp ) )
valid = false;
@@ -367,7 +367,7 @@ bool KMFCheckInput::checkChainName( TQString inp ) {
}
bool KMFCheckInput::checkRuleName( TQString inp ) {
- bool valid = TRUE;
+ bool valid = true;
TQRegExp exp( "^[a-zA-Z0-9_-]{1,20}$", false );
if ( !inp.contains( exp ) )
valid = false;
diff --git a/kmyfirewall/ipteditor/kmfnewchaindlg.h b/kmyfirewall/ipteditor/kmfnewchaindlg.h
index 78bd40f..2aed672 100644
--- a/kmyfirewall/ipteditor/kmfnewchaindlg.h
+++ b/kmyfirewall/ipteditor/kmfnewchaindlg.h
@@ -35,7 +35,7 @@ class KMFNewChainDlg : public KMyFirewallChainEditorNewChain {
TQ_OBJECT
public:
- KMFNewChainDlg( TQWidget *parent = 0, const char *name = 0, bool modal = FALSE, WFlags fl = 0 );
+ KMFNewChainDlg( TQWidget *parent = 0, const char *name = 0, bool modal = false, WFlags fl = 0 );
~KMFNewChainDlg();
void loadDoc( KMFIPTDoc* doc );
diff --git a/kmyfirewall/ipteditor/kmfruleedit.cpp b/kmyfirewall/ipteditor/kmfruleedit.cpp
index e2b9b83..ee19283 100644
--- a/kmyfirewall/ipteditor/kmfruleedit.cpp
+++ b/kmyfirewall/ipteditor/kmfruleedit.cpp
@@ -544,7 +544,7 @@ void KMFRuleEdit::slotAddRule() {
i18n( "Sorry" ) );
return ;
}
- bool ok = FALSE;
+ bool ok = false;
const TQString greeting = i18n( "New Rule" );
const TQString label = i18n( "Please enter a name for the new rule:" );
TQString text = TQInputDialog::getText( greeting, label, TQLineEdit::Normal, TQString(), &ok, this, "dsa" );
diff --git a/kmyfirewall/kmfwidgets/kmfchecklistoutput.h b/kmyfirewall/kmfwidgets/kmfchecklistoutput.h
index f00da79..83ef633 100644
--- a/kmyfirewall/kmfwidgets/kmfchecklistoutput.h
+++ b/kmyfirewall/kmfwidgets/kmfchecklistoutput.h
@@ -33,7 +33,7 @@ class TDE_EXPORT KMFCheckListOutput : public TQDialog {
TQ_OBJECT
public:
- KMFCheckListOutput( TQWidget *parent = 0, const char *name = 0, bool modal = FALSE, WFlags fl = 0 );
+ KMFCheckListOutput( TQWidget *parent = 0, const char *name = 0, bool modal = false, WFlags fl = 0 );
~KMFCheckListOutput();
/**
diff --git a/kmyfirewall/kmfwidgets/kmfdocumentinfo.h b/kmyfirewall/kmfwidgets/kmfdocumentinfo.h
index 2f1f55a..8f4bedf 100644
--- a/kmyfirewall/kmfwidgets/kmfdocumentinfo.h
+++ b/kmyfirewall/kmfwidgets/kmfdocumentinfo.h
@@ -29,7 +29,7 @@ class TDE_EXPORT KMFDocumentInfo : public KMyFirewallDocumentInfo {
public:
- KMFDocumentInfo(TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+ KMFDocumentInfo(TQWidget* parent = 0, const char* name = 0, bool modal = false, WFlags fl = 0 );
~KMFDocumentInfo();
/*$PUBLIC_FUNCTIONS$*/
diff --git a/kmyfirewall/kmfwidgets/kmflistview.cpp b/kmyfirewall/kmfwidgets/kmflistview.cpp
index c1c2b40..796769e 100644
--- a/kmyfirewall/kmfwidgets/kmflistview.cpp
+++ b/kmyfirewall/kmfwidgets/kmflistview.cpp
@@ -543,7 +543,7 @@ void KMFListView::setupChainView( IPTChain* chain, KMFListViewItem* parent ) {
i_chain_allrules = findKMFItem( i18n( "Rule(s):" ), 0, chain->uuid(), true, item );
if ( ! i_chain_allrules ) {
i_chain_allrules = new KMFListViewItem( item, i_chain_fwds, chain );
- i_chain_allrules->setOpen( TRUE );
+ i_chain_allrules->setOpen( true );
}
i_chain_allrules->sortChildItems( 0, true );
diff --git a/kmyfirewall/kmfwidgets/kmfprocout.cpp b/kmyfirewall/kmfwidgets/kmfprocout.cpp
index af8b179..0c485fb 100644
--- a/kmyfirewall/kmfwidgets/kmfprocout.cpp
+++ b/kmyfirewall/kmfwidgets/kmfprocout.cpp
@@ -71,7 +71,7 @@ void KMFProcOut::initGUI() {
m_ljob_name = new TQLabel( this, "m_ljob_name" );
TQFont ljob_name_font( m_ljob_name->font() );
- ljob_name_font.setBold( TRUE );
+ ljob_name_font.setBold( true );
m_ljob_name->setFont( ljob_name_font );
m_ljob_name->setFrameShape( TQLabel::StyledPanel );
m_ljob_name->setFrameShadow( TQLabel::Sunken );
diff --git a/kmyfirewall/kmfwidgets/kmfselectactivetarget.h b/kmyfirewall/kmfwidgets/kmfselectactivetarget.h
index 2d273cb..9007c67 100644
--- a/kmyfirewall/kmfwidgets/kmfselectactivetarget.h
+++ b/kmyfirewall/kmfwidgets/kmfselectactivetarget.h
@@ -34,7 +34,7 @@ class TDE_EXPORT KMFSelectActiveTarget : public KMyFirewallSelectActiveTarget
public: static KMFTarget* selectTarget( KMFNetwork* network, const TQString& msg );
public:
- KMFSelectActiveTarget ( TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+ KMFSelectActiveTarget ( TQWidget* parent = 0, const char* name = 0, bool modal = false, WFlags fl = 0 );
~KMFSelectActiveTarget();
/*$PUBLIC_FUNCTIONS$*/
void loadNetwork( KMFNetwork* );
diff --git a/kmyfirewall/kmfwidgets/kmftemplatechooser.h b/kmyfirewall/kmfwidgets/kmftemplatechooser.h
index 0db3592..b48a88f 100644
--- a/kmyfirewall/kmfwidgets/kmftemplatechooser.h
+++ b/kmyfirewall/kmfwidgets/kmftemplatechooser.h
@@ -33,7 +33,7 @@ class TDE_EXPORT KMFTemplateChooser : public KMyFirewallTemplateChooser {
public:
- KMFTemplateChooser(TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+ KMFTemplateChooser(TQWidget* parent = 0, const char* name = 0, bool modal = false, WFlags fl = 0 );
~KMFTemplateChooser();
/*$PUBLIC_FUNCTIONS$*/
diff --git a/kmyfirewall/kmfwidgets/kmftqtdesignerplugin.cpp b/kmyfirewall/kmfwidgets/kmftqtdesignerplugin.cpp
index 63f305a..56ae475 100644
--- a/kmyfirewall/kmfwidgets/kmftqtdesignerplugin.cpp
+++ b/kmyfirewall/kmfwidgets/kmftqtdesignerplugin.cpp
@@ -67,7 +67,7 @@ TQString KMFTQTDesignerPlugin::whatsThis ( const TQString& feature ) const {
}
bool KMFTQTDesignerPlugin::isContainer ( const TQString& ) const {
- return FALSE;
+ return false;
}
}
diff --git a/kmyfirewall/ruleoptionplugins/ip_option/kmfruleeditip.cpp b/kmyfirewall/ruleoptionplugins/ip_option/kmfruleeditip.cpp
index e228e19..d35b3f5 100644
--- a/kmyfirewall/ruleoptionplugins/ip_option/kmfruleeditip.cpp
+++ b/kmyfirewall/ruleoptionplugins/ip_option/kmfruleeditip.cpp
@@ -48,7 +48,7 @@ namespace KMF {
* 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.
*/
KMFRuleEditIP::KMFRuleEditIP( TQWidget* parent, const char* name, WFlags fl )
: KMyFirewallRuleEditorIP ( parent, name, fl ) {
diff --git a/kmyfirewall/ruleoptionplugins/mac_option/kmfruleeditmac.cpp b/kmyfirewall/ruleoptionplugins/mac_option/kmfruleeditmac.cpp
index ca1da41..6083473 100644
--- a/kmyfirewall/ruleoptionplugins/mac_option/kmfruleeditmac.cpp
+++ b/kmyfirewall/ruleoptionplugins/mac_option/kmfruleeditmac.cpp
@@ -46,7 +46,7 @@ namespace KMF {
* 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.
*/
KMFRuleEditMac::KMFRuleEditMac( TQWidget* parent, const char* name, WFlags fl )
: KMyFirewallRuleEditorMac( parent, name, fl ) {