summaryrefslogtreecommitdiffstats
path: root/src/kvpncconfig.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kvpncconfig.cpp')
-rw-r--r--src/kvpncconfig.cpp16
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 );