summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-12-15 12:42:30 +0900
committerMichele Calgaro <[email protected]>2023-12-17 20:10:26 +0900
commit3efb8ddd18a74b0a5d4402898c02115a61998786 (patch)
treeaa712c6ac8bbf9666d6ccc308aa599643098a731
parentf7a200409037ebd65c29af23cebe092eba2f40aa (diff)
downloadwlassistant-3efb8ddd18a74b0a5d4402898c02115a61998786.tar.gz
wlassistant-3efb8ddd18a74b0a5d4402898c02115a61998786.zip
Replace various '#define' strings - part 6
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 367cb43dc1c34ab5efe331a4df08588256f34b03)
-rw-r--r--src/wlassistant.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wlassistant.cpp b/src/wlassistant.cpp
index fb70105..61dda46 100644
--- a/src/wlassistant.cpp
+++ b/src/wlassistant.cpp
@@ -930,7 +930,7 @@ TQString WirelessAssistant::runCommand( const TQStringList & cmd, int timeout, b
// a very basic and easy-to-workaround attepmt to restrict using dangerous commands via custom commands setting. This *REALLY* needs a working solution.
if ( cmd[0] == "rm" || cmd[0] == "mv" || cmd[0] == "cp" || cmd[0] == "ln" ) return TQString();
- TQProcess* p = new TQProcess( TQT_TQOBJECT(this) );
+ TQProcess* p = new TQProcess( this );
p->setArguments( cmd );
p->start();
@@ -1211,7 +1211,7 @@ bool WirelessAssistant::setWpaClientEnabled( bool e, const TQString& iface, TQSt
std::cout << "Using wpa_supplicant driver: " << driver.ascii() << std::endl;
}
- TQProcess* wp = new TQProcess( TQT_TQOBJECT(this) );
+ TQProcess* wp = new TQProcess( this );
wp->clearArguments();
wp->addArgument( Commands.wpa_supplicant );
wp->addArgument( "-W" ); //wait for control interface