diff options
Diffstat (limited to 'lib/kross/ruby/rubyinterpreter.cpp')
-rw-r--r-- | lib/kross/ruby/rubyinterpreter.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/kross/ruby/rubyinterpreter.cpp b/lib/kross/ruby/rubyinterpreter.cpp index 805ae722..d1fbec01 100644 --- a/lib/kross/ruby/rubyinterpreter.cpp +++ b/lib/kross/ruby/rubyinterpreter.cpp @@ -20,7 +20,7 @@ #include <map> -#include <qregexp.h> +#include <tqregexp.h> #include <ksharedptr.h> #include <api/exception.h> @@ -61,7 +61,7 @@ extern "C" namespace Kross { namespace Ruby { -typedef std::map<QString, VALUE> mStrVALUE; +typedef std::map<TQString, VALUE> mStrVALUE; typedef mStrVALUE::iterator mStrVALUE_it; typedef mStrVALUE::const_iterator mStrVALUE_cit; class RubyInterpreterPrivate { @@ -119,11 +119,11 @@ VALUE RubyInterpreter::require (VALUE obj, VALUE name) #ifdef KROSS_RUBY_INTERPRETER_DEBUG krossdebug("RubyInterpreter::require(obj,name)"); #endif - QString modname = StringValuePtr(name); + TQString modname = StringValuePtr(name); if(modname.startsWith("kross")) { - krossdebug( QString("RubyInterpreter::require() module=%1").arg(modname) ); - if( modname.find( QRegExp("[^a-zA-Z0-9\\_\\-]") ) >= 0 ) { - krosswarning( QString("Denied import of Kross module '%1' cause of untrusted chars.").arg(modname) ); + krossdebug( TQString("RubyInterpreter::require() module=%1").tqarg(modname) ); + if( modname.tqfind( TQRegExp("[^a-zA-Z0-9\\_\\-]") ) >= 0 ) { + krosswarning( TQString("Denied import of Kross module '%1' cause of untrusted chars.").tqarg(modname) ); } else { Kross::Api::Module::Ptr module = Kross::Api::Manager::scriptManager()->loadModule(modname); @@ -136,7 +136,7 @@ VALUE RubyInterpreter::require (VALUE obj, VALUE name) // rb_define_variable( ("$" + modname).ascii(), & RubyInterpreter::d->m_modules.insert( mStrVALUE::value_type( modname, rm) ).first->second ); return Qtrue; } - krosswarning( QString("Loading of Kross module '%1' failed.").arg(modname) ); + krosswarning( TQString("Loading of Kross module '%1' failed.").tqarg(modname) ); } } else { return rb_f_require(obj, name); |