diff options
Diffstat (limited to 'src/kqrunprocess.h')
-rw-r--r-- | src/kqrunprocess.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/kqrunprocess.h b/src/kqrunprocess.h index 4ac1b9a..721599f 100644 --- a/src/kqrunprocess.h +++ b/src/kqrunprocess.h @@ -22,14 +22,14 @@ #include <stdlib.h> #include <unistd.h> -static bool run_process( const QString& command, const QString& filename ) +static bool run_process( const TQString& command, const TQString& filename ) { - QString safefilename = filename; - QString preparedcommand = command; + TQString safefilename = filename; + TQString preparedcommand = command; // To be safe, URL should contain no quotes, apostrofes and \0 symbols - safefilename.remove (QRegExp ("['\"\0]")); - preparedcommand.replace( "%s", safefilename ); + safefilename.remove (TQRegExp ("['\"\0]")); + preparedcommand.tqreplace( "%s", safefilename ); // And run an external command with fork()s switch ( fork() ) @@ -39,12 +39,12 @@ static bool run_process( const QString& command, const QString& filename ) case 0: // child if ( fork() != 0 ) - exit(0); // exit immediately - our child is now has init as his parent + exit(0); // exit immediately - our child is now has init as his tqparent system( preparedcommand.ascii() ); exit (0); - default: // parent + default: // tqparent break; } |