diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-03-22 14:28:03 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-03-23 10:07:10 +0900 |
commit | 39876d710881d647fd0d755d31b620a7214cf9ff (patch) | |
tree | 0affcc87388c3f41ff8a5013910f9e35cd0da0a9 /src/kvpncconfig.cpp | |
parent | f45740dc476004d43e63d94b746239e77dfef19e (diff) | |
download | kvpnc-r14.1.4.tar.gz kvpnc-r14.1.4.zip |
Replace TRUE/FALSE with boolean values true/falser14.1.4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit b1606f1200c833b5a0896d6bfe08db8db8c6d81e)
Diffstat (limited to 'src/kvpncconfig.cpp')
-rw-r--r-- | src/kvpncconfig.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/kvpncconfig.cpp b/src/kvpncconfig.cpp index 1b90197..f265806 100644 --- a/src/kvpncconfig.cpp +++ b/src/kvpncconfig.cpp @@ -155,10 +155,10 @@ KVpncConfig::KVpncConfig(TQWidget *parent,KStatusBar *statusbar) DebugBackgroundcolor=black; ToolList = new TQPtrList<ToolInfo>(); - ToolList->setAutoDelete( TRUE ); + ToolList->setAutoDelete( true ); AccountList = new TQPtrList<VpnAccountData>(); - AccountList->setAutoDelete( TRUE ); // the list owns the objects + AccountList->setAutoDelete( true ); // the list owns the objects InfoLogColor=TQt::black; ErrorLogColor=TQt::red; @@ -460,7 +460,7 @@ void KVpncConfig::saveOptions(bool saveOneProfile, TQString Profile) else { TmpAccountList = new TQPtrList<VpnAccountData>(); - TmpAccountList->setAutoDelete( TRUE ); // the list owns the objects + TmpAccountList->setAutoDelete( true ); // the list owns the objects VpnAccountData *ProfileData; for ( ProfileData = AccountList->first(); it; it = AccountList->next() ) @@ -1562,7 +1562,7 @@ bool KVpncConfig::exportKvpncConfig(TQString filename) if( exportfile.open(IO_WriteOnly)) { TQPtrList<VpnAccountData> *exportAccountList = new TQPtrList<VpnAccountData>(); - exportAccountList->setAutoDelete( TRUE ); // the list owns the objects + exportAccountList->setAutoDelete( true ); // the list owns the objects KvpncImportProfileSelectionBase selectdlg; VpnAccountData *it=NULL; selectdlg.OpenProfileManagerCheckBox->hide(); @@ -2278,7 +2278,7 @@ bool KVpncConfig::importKvpncConfig(TQString filename, TQString& RetName, bool& std::cout << "profiles tag found." << std::endl; ImportedAccountList = new TQPtrList<VpnAccountData>(); - ImportedAccountList->setAutoDelete( TRUE ); // the list owns the objects + ImportedAccountList->setAutoDelete( true ); // the list owns the objects TQDomNodeList profiles_subnodes = n.toElement().childNodes(); for (int i=0;i<=(int)profiles_subnodes.count();i++) @@ -2789,7 +2789,7 @@ bool KVpncConfig::importIpsecConfig(TQString filename, TQString& RetName, bool& return false; } TQPtrList<VpnAccountData> *ImportedAccountList = new TQPtrList<VpnAccountData>(); - ImportedAccountList->setAutoDelete( TRUE ); // the list owns the objects + ImportedAccountList->setAutoDelete( true ); // the list owns the objects TQPtrList<IpsecImportSection> *IpsecImportSectionList = new TQPtrList<IpsecImportSection>(); bool isIpsecGlobalSection=false; @@ -3383,7 +3383,7 @@ bool KVpncConfig::importIpsecConfig(TQString filename, TQString& RetName, bool& validLineFound=true; TQString Authby=line2.simplifyWhiteSpace().section ( "authby=",1,1 ); // std::cout << "left and right use certs " << std::endl; - if ( Authby.find ( "rsasig", 0 , FALSE ) > -1 ) + if ( Authby.find ( "rsasig", 0 , false ) > -1 ) { if ( KvpncDebugLevel > 2 ) appendLogEntry ( i18n ( "import ipsec config: left and right use certs." ) ,debug ); @@ -3392,7 +3392,7 @@ bool KVpncConfig::importIpsecConfig(TQString filename, TQString& RetName, bool& //profiledata->setPskIsInFile ( true ); //profiledata->setPrivateKey ( "/etc/ipsec.secrets" ); } - else if ( Authby.find ( "secret", 0 , FALSE ) > -1 ) + else if ( Authby.find ( "secret", 0 , false ) > -1 ) { if ( KvpncDebugLevel > 2 ) appendLogEntry ( i18n ( "import ipsec config: left and right use psk." ) ,debug ); |