summaryrefslogtreecommitdiff
path: root/src/script/api
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2012-03-06 10:23:21 +0100
committerQt by Nokia <qt-info@nokia.com>2012-03-06 10:30:01 +0100
commit88948c73595eb2d142b163edb6d791fed8298676 (patch)
tree50d6fff649a930fa2cc7e3975b73739839bf8479 /src/script/api
parentffd7231dbec0a96dd34a02a056b86aae1992cdbf (diff)
downloadqtscript-88948c73595eb2d142b163edb6d791fed8298676.tar.gz
Fix compilation, use DefaultCodec.
Change-Id: I0d1036eb75de9fcd2663ec5476d3b13edb2e264e Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'src/script/api')
-rw-r--r--src/script/api/qscriptengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/api/qscriptengine.cpp b/src/script/api/qscriptengine.cpp
index 2934aa6..73e1549 100644
--- a/src/script/api/qscriptengine.cpp
+++ b/src/script/api/qscriptengine.cpp
@@ -814,7 +814,7 @@ JSC::JSValue JSC_HOST_CALL functionQsTranslate(JSC::ExecState *exec, JSC::JSObje
if (args.size() > 3) {
JSC::UString encStr = args.at(3).toString(exec);
if (encStr == "CodecForTr")
- encoding = QCoreApplication::CodecForTr;
+ encoding = QCoreApplication::DefaultCodec;
else if (encStr == "UnicodeUTF8")
encoding = QCoreApplication::UnicodeUTF8;
else