summaryrefslogtreecommitdiffstats
path: root/examples/script/marshal/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/script/marshal/main.cpp')
-rw-r--r--examples/script/marshal/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/script/marshal/main.cpp b/examples/script/marshal/main.cpp
index adfeaf1..270cb56 100644
--- a/examples/script/marshal/main.cpp
+++ b/examples/script/marshal/main.cpp
@@ -49,7 +49,7 @@ QScriptValue toScriptValue(QScriptEngine *eng, const Container &cont)
typename Container::const_iterator end = cont.end();
typename Container::const_iterator it;
for (it = begin; it != end; ++it)
- a.setProperty(quint32(it - begin), qScriptValueFromValue(eng, *it));
+ a.setProperty(quint32(it - begin), eng->toScriptValue(*it));
return a;
}