diff options
Diffstat (limited to 'kjsembed/jsbinding.cpp')
-rw-r--r-- | kjsembed/jsbinding.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kjsembed/jsbinding.cpp b/kjsembed/jsbinding.cpp index cb6316d7..d015e7b5 100644 --- a/kjsembed/jsbinding.cpp +++ b/kjsembed/jsbinding.cpp @@ -138,8 +138,8 @@ namespace KJSEmbed { } case TQVariant::Map: { - TQMap<TQString,TQVariant> map = val.toMap(); - TQMap<TQString,TQVariant>::Iterator idx = map.begin(); + TQStringVariantMap map = val.toMap(); + TQStringVariantMap::Iterator idx = map.begin(); KJS::Object array( exec->interpreter() ->builtinArray().construct( exec, 0 ) ); for ( ; idx != map.end(); ++idx ) array.put(exec, KJS::Identifier(idx.key().latin1()), convertToValue( exec, idx.data() ) ); @@ -267,7 +267,7 @@ namespace KJSEmbed { /* kdDebug( 80001 ) << "convertToVariant() got a JSProxy" << endl; val = prxy->typeName(); */ - } else { // Last resort map the object to a TQMap<TQString,TQVariant> + } else { // Last resort map the object to a TQStringVariantMap kdDebug( 80001 ) << "convertToVariant() map to struct." << endl; val = convertArrayToMap(exec, v); } @@ -628,8 +628,8 @@ namespace KJSEmbed { return None; } - TQMap<TQString, TQVariant> convertArrayToMap( KJS::ExecState *exec, const KJS::Value &value ) { - TQMap<TQString, TQVariant> returnMap; + TQStringVariantMap convertArrayToMap( KJS::ExecState *exec, const KJS::Value &value ) { + TQStringVariantMap returnMap; KJS::Object obj = value.toObject(exec); // if( obj.className().qstring() == "Array" ) { KJS::ReferenceList lst = obj.propList(exec,false); |