diff options
author | Tasuku Suzuki <stasuku@gmail.com> | 2012-11-23 04:21:49 +0900 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-26 18:47:20 +0100 |
commit | cedaf867421f4c43a2da712f00e9626e64c8b250 (patch) | |
tree | 6337786b200cb9e198531456439719de5187827e /src/qml/qml/qqmlcompiler.cpp | |
parent | 31151e232eeeefa929796580a489b9bd851590bb (diff) |
Enable mobule build with QT_NO_TRANSLATION
Change-Id: Id7aeef0d499f48ddc64b4ea3e4dc713db8458c38
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Alan Alpert (RIM) <aalpert@rim.com>
Diffstat (limited to 'src/qml/qml/qqmlcompiler.cpp')
-rw-r--r-- | src/qml/qml/qqmlcompiler.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlcompiler.cpp b/src/qml/qml/qqmlcompiler.cpp index cdbdb1e059..0b22228034 100644 --- a/src/qml/qml/qqmlcompiler.cpp +++ b/src/qml/qml/qqmlcompiler.cpp @@ -3524,6 +3524,7 @@ void QQmlCompiler::genBindingAssignment(QQmlScript::Value *binding, Q_ASSERT(binding->bindingReference); const BindingReference &ref = *binding->bindingReference; +#ifndef QT_NO_TRANSLATION if (ref.dataType == BindingReference::TrId) { const TrBindingReference &tr = static_cast<const TrBindingReference &>(ref); @@ -3542,7 +3543,9 @@ void QQmlCompiler::genBindingAssignment(QQmlScript::Value *binding, store.comment = output->indexForByteArray(tr.comment.toUtf8()); store.n = tr.n; output->addInstruction(store); - } else if (ref.dataType == BindingReference::V4) { + } else +#endif + if (ref.dataType == BindingReference::V4) { const JSBindingReference &js = static_cast<const JSBindingReference &>(ref); Instruction::StoreV4Binding store; |