summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlscriptparser.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-10-12 03:00:08 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-10-12 03:00:08 (GMT)
commit6be94173f3f209d785e5787df8440d20ff0f2709 (patch)
tree75794282e09b2af08b26752069b0eb7fcabe3653 /src/declarative/qml/qmlscriptparser.cpp
parent68c69f88d4c3a7b9f24162a4c7708ded7caba90e (diff)
downloadQt-6be94173f3f209d785e5787df8440d20ff0f2709.zip
Qt-6be94173f3f209d785e5787df8440d20ff0f2709.tar.gz
Qt-6be94173f3f209d785e5787df8440d20ff0f2709.tar.bz2
Use utf8 instead of latin1 where appropriate
Diffstat (limited to 'src/declarative/qml/qmlscriptparser.cpp')
-rw-r--r--src/declarative/qml/qmlscriptparser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/declarative/qml/qmlscriptparser.cpp b/src/declarative/qml/qmlscriptparser.cpp
index 1c7bf83..57e40b6 100644
--- a/src/declarative/qml/qmlscriptparser.cpp
+++ b/src/declarative/qml/qmlscriptparser.cpp
@@ -87,12 +87,12 @@ class ProcessAST: protected AST::Visitor
const State &state = top();
if (state.property) {
State s(state.property->getValue(),
- state.property->getValue()->getProperty(name.toLatin1()));
+ state.property->getValue()->getProperty(name.toUtf8()));
s.property->location = location;
push(s);
} else {
State s(state.object,
- state.object->getProperty(name.toLatin1()));
+ state.object->getProperty(name.toUtf8()));
s.property->location = location;
push(s);
@@ -312,7 +312,7 @@ ProcessAST::defineObjectBinding_helper(AST::UiQualifiedId *propertyName,
// XXX this doesn't do anything (_scope never builds up)
_scope.append(resolvableObjectType);
- obj->typeName = qualifiedNameId().toLatin1();
+ obj->typeName = qualifiedNameId().toUtf8();
_scope.removeLast();
obj->location = location;