From b1606f1200c833b5a0896d6bfe08db8db8c6d81e Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 22 Mar 2025 14:28:03 +0900 Subject: Replace TRUE/FALSE with boolean values true/false Signed-off-by: Michele Calgaro --- src/networkinterface.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/networkinterface.cpp') diff --git a/src/networkinterface.cpp b/src/networkinterface.cpp index 8196312..e4c5e41 100644 --- a/src/networkinterface.cpp +++ b/src/networkinterface.cpp @@ -43,7 +43,7 @@ NetworkInterface::NetworkInterface( KVpncConfig* GlobalConfig,TQApplication *app interfaceTest = false; retrieveInterfaceAddress = false; TQPtrList*InterfaceList = new TQPtrList(); - 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 -- cgit v1.2.3