summaryrefslogtreecommitdiffstats
path: root/src/networkinterface.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-03-22 14:28:03 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-03-23 10:07:10 +0900
commit39876d710881d647fd0d755d31b620a7214cf9ff (patch)
tree0affcc87388c3f41ff8a5013910f9e35cd0da0a9 /src/networkinterface.cpp
parentf45740dc476004d43e63d94b746239e77dfef19e (diff)
downloadkvpnc-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/networkinterface.cpp')
-rw-r--r--src/networkinterface.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/networkinterface.cpp b/src/networkinterface.cpp
index a582590..97677d8 100644
--- a/src/networkinterface.cpp
+++ b/src/networkinterface.cpp
@@ -43,7 +43,7 @@ NetworkInterface::NetworkInterface( KVpncConfig* GlobalConfig,TQApplication *app
interfaceTest = false;
retrieveInterfaceAddress = false;
TQPtrList<TQString>*InterfaceList = new TQPtrList<TQString>();
- InterfaceList->setAutoDelete( TRUE ); // the list owns the objects
+ InterfaceList->setAutoDelete( true ); // the list owns the objects
TQString InterfaceIP = "";
TQString InterfaceAddress = "";
IPforInterface = "";
@@ -477,7 +477,7 @@ void NetworkInterface::readFromStdout()
if ( interfaceTest )
{
- if ( line.find( "proto", 0 , FALSE ) != -1 )
+ if ( line.find( "proto", 0 , false ) != -1 )
{
interfaceExists = true;
interfaceTest = false;
@@ -536,7 +536,7 @@ void NetworkInterface::readFromStdout_interfaceip()
TQString line = InterfaceIpProc->readLineStdout() ;
// TQString line = TQString(InterfaceIpProc->readStdout());
- if (line.find( "inet ", 0 , FALSE ) != -1 )
+ if (line.find( "inet ", 0 , false ) != -1 )
{
InterfaceIP = line.simplifyWhiteSpace().section(' ', 1,1).section('/',0,0); // inet 192.168.10.100/24 brd 192.168.10.255 scope global