aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativecompiler.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-08-31 16:43:22 +0200
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-08-31 17:02:05 +0200
commit01335edc94d2961bd4061ed2cb81ebd1151797bf (patch)
tree54df7d2d0857278198258e4d8a65bf63cb35d91a /src/declarative/qml/qdeclarativecompiler.cpp
parent20c3575fc39004d6a556820543982f4a6ebef0be (diff)
Fix export symbols for QtDeclarative and QtQuick1.
Fix build on Windows and compiler warnings. Requires 090ee21eac7257644422e35395194e5fd7fb8efa in qtbase. Change-Id: Ief8da504ccd3e2c2e78644cc9943d685c4302019 Reviewed-on: http://codereview.qt.nokia.com/3988 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'src/declarative/qml/qdeclarativecompiler.cpp')
-rw-r--r--src/declarative/qml/qdeclarativecompiler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/qml/qdeclarativecompiler.cpp b/src/declarative/qml/qdeclarativecompiler.cpp
index 79094b7e0e..b3d714dcb2 100644
--- a/src/declarative/qml/qdeclarativecompiler.cpp
+++ b/src/declarative/qml/qdeclarativecompiler.cpp
@@ -1595,7 +1595,7 @@ bool QDeclarativeCompiler::buildProperty(QDeclarativeScript::Property *prop,
QDeclarativePropertyCache::Data defaultPropertyData;
defaultPropertyData.load(p, engine);
if (p.name())
- prop->setName(p.name());
+ prop->setName(QLatin1String(p.name()));
prop->core = defaultPropertyData;
prop->index = prop->core.coreIndex;
}
@@ -2406,7 +2406,7 @@ const QMetaObject *QDeclarativeCompiler::resolveType(const QByteArray& name) con
int QDeclarativeCompiler::rewriteBinding(const QString& expression, const QString& name)
{
QDeclarativeRewrite::RewriteBinding rewriteBinding;
- rewriteBinding.setName(QLatin1Char('$') + name.mid(name.lastIndexOf('.') + 1));
+ rewriteBinding.setName(QLatin1Char('$') + name.mid(name.lastIndexOf(QLatin1Char('.')) + 1));
QString rewrite = rewriteBinding(expression, 0, 0);