From 367cb43dc1c34ab5efe331a4df08588256f34b03 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 15 Dec 2023 12:42:30 +0900 Subject: [PATCH] Replace various '#define' strings - part 6 Signed-off-by: Michele Calgaro --- src/wlassistant.cpp | 4 ++-- 1 file 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