diff options
Diffstat (limited to 'lib/kross/ruby/rubyscript.cpp')
-rw-r--r-- | lib/kross/ruby/rubyscript.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/kross/ruby/rubyscript.cpp b/lib/kross/ruby/rubyscript.cpp index fa0ee1d0..dc0fbb16 100644 --- a/lib/kross/ruby/rubyscript.cpp +++ b/lib/kross/ruby/rubyscript.cpp @@ -41,10 +41,10 @@ class RubyScriptPrivate { RubyScriptPrivate() : m_compile(0) { } RNode* m_compile; /// A list of functionnames. - QStringList m_functions; + TQStringList m_functions; /// A list of classnames. - QStringList m_classes; + TQStringList m_classes; }; RubyScript::RubyScript(Kross::Api::Interpreter* interpreter, Kross::Api::ScriptContainer* scriptcontainer) @@ -87,7 +87,7 @@ void RubyScript::compile() #ifdef KROSS_RUBY_SCRIPT_DEBUG krossdebug("Compilation has failed"); #endif - setException( new Kross::Api::Exception(QString("Failed to compile ruby code: %1").arg(STR2CSTR( rb_obj_as_string(ruby_errinfo) )), 0) ); // TODO: get the error + setException( new Kross::Api::Exception(TQString("Failed to compile ruby code: %1").tqarg(STR2CSTR( rb_obj_as_string(ruby_errinfo) )), 0) ); // TODO: get the error d->m_compile = 0; } #ifdef KROSS_RUBY_SCRIPT_DEBUG @@ -95,7 +95,7 @@ void RubyScript::compile() #endif } -const QStringList& RubyScript::getFunctionNames() +const TQStringList& RubyScript::getFunctionNames() { #ifdef KROSS_RUBY_SCRIPT_DEBUG krossdebug("RubyScript::getFunctionNames()"); @@ -133,7 +133,7 @@ Kross::Api::Object::Ptr RubyScript::execute() #endif setException( RubyExtension::convertToException( ruby_errinfo ) ); } else { - setException( new Kross::Api::Exception(QString("Failed to execute ruby code: %1").arg(STR2CSTR( rb_obj_as_string(ruby_errinfo) )), 0) ); // TODO: get the error + setException( new Kross::Api::Exception(TQString("Failed to execute ruby code: %1").tqarg(STR2CSTR( rb_obj_as_string(ruby_errinfo) )), 0) ); // TODO: get the error } } @@ -144,7 +144,7 @@ Kross::Api::Object::Ptr RubyScript::execute() return 0; } -Kross::Api::Object::Ptr RubyScript::callFunction(const QString& name, Kross::Api::List::Ptr args) +Kross::Api::Object::Ptr RubyScript::callFunction(const TQString& name, Kross::Api::List::Ptr args) { Q_UNUSED(name) Q_UNUSED(args) @@ -160,7 +160,7 @@ Kross::Api::Object::Ptr RubyScript::callFunction(const QString& name, Kross::Api return 0; } -const QStringList& RubyScript::getClassNames() +const TQStringList& RubyScript::getClassNames() { #ifdef KROSS_RUBY_SCRIPT_DEBUG krossdebug("RubyScript::getClassNames()"); @@ -172,7 +172,7 @@ const QStringList& RubyScript::getClassNames() return d->m_classes; } -Kross::Api::Object::Ptr RubyScript::classInstance(const QString& name) +Kross::Api::Object::Ptr RubyScript::classInstance(const TQString& name) { Q_UNUSED(name) #ifdef KROSS_RUBY_SCRIPT_DEBUG |