summaryrefslogtreecommitdiffstats
path: root/kjsembed/jsbinding.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2019-06-01 18:17:20 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2019-06-01 18:17:20 +0900
commit245d13f9d1ecf2d4ab6ab321709e10c8c261f7a7 (patch)
treec0e496204cda4a895921ccd48320719d0041aa23 /kjsembed/jsbinding.cpp
parent9055b21d6a4e7da5a959336eec39471b63490ee3 (diff)
downloadtdebindings-245d13f9d1ecf2d4ab6ab321709e10c8c261f7a7.tar.gz
tdebindings-245d13f9d1ecf2d4ab6ab321709e10c8c261f7a7.zip
Adjusted to use new TQStringVariantMap type.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kjsembed/jsbinding.cpp')
-rw-r--r--kjsembed/jsbinding.cpp10
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);