Replace TRUE/FALSE with boolean values true/false

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/28/head
Michele Calgaro 1 year ago
parent ab2c336a37
commit 9f5e45d62f
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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 ) {

@ -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();

@ -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;

@ -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 );

@ -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" );

@ -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();
/**

@ -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$*/

@ -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 );

@ -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 );

@ -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* );

@ -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$*/

@ -67,7 +67,7 @@ TQString KMFTQTDesignerPlugin::whatsThis ( const TQString& feature ) const {
}
bool KMFTQTDesignerPlugin::isContainer ( const TQString& ) const {
return FALSE;
return false;
}
}

@ -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 ) {

@ -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 ) {

Loading…
Cancel
Save