summaryrefslogtreecommitdiffstats
path: root/kjsembed/kjscmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/kjscmd.cpp')
-rw-r--r--kjsembed/kjscmd.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kjsembed/kjscmd.cpp b/kjsembed/kjscmd.cpp
index 4b6604cf..762d8715 100644
--- a/kjsembed/kjscmd.cpp
+++ b/kjsembed/kjscmd.cpp
@@ -55,11 +55,11 @@ int main( int argc, char **argv )
{
bool nogui = false;
bool doexec = false;
- TQCString appName = "kjscmd";
+ TTQCString appName = "kjscmd";
// Set the name of the instance
for ( int i = 1 ; i < argc ; i++ ) {
- TQCString arg( argv[i] );
+ TTQCString arg( argv[i] );
if ( arg[0] != '-' ) {
appName = arg.mid( arg.findRev('/') );
if ( !appName )
@@ -144,8 +144,8 @@ int main( int argc, char **argv )
bool ok = part->runFile( args->arg(0) );
KJS::Completion jsres = part->completion();
if ( jsres.complType() != KJS::Normal) {
- TQTextStream err( stderr, IO_WriteOnly );
- TQTextStream out( stdout, IO_WriteOnly );
+ TTQTextStream err( stderr, IO_WriteOnly );
+ TTQTextStream out( stdout, IO_WriteOnly );
switch ( jsres.complType() ) {
case KJS::Break:
@@ -162,8 +162,8 @@ int main( int argc, char **argv )
KJS::Object exception = jsres.value().toObject(exec);
int line = exception.get(exec,KJS::Identifier("line")).toNumber(exec);
- TQString type = exception.get(exec,KJS::Identifier("name")).toString(exec).qstring();
- TQString message = exception.get(exec,KJS::Identifier("message")).toString(exec).qstring();
+ TTQString type = exception.get(exec,KJS::Identifier("name")).toString(exec).qstring();
+ TTQString message = exception.get(exec,KJS::Identifier("message")).toString(exec).qstring();
err << "Uncaught " << type << " exception at: " << line << endl;
err << message << endl;
@@ -183,7 +183,7 @@ int main( int argc, char **argv )
result = app->exec();
if ( args->isSet( "interactive" ) ) {
- part->execute( TQString("include('cmdline.js');") );
+ part->execute( TTQString("include('cmdline.js');") );
}
return result;