From cedaf867421f4c43a2da712f00e9626e64c8b250 Mon Sep 17 00:00:00 2001 From: Tasuku Suzuki Date: Fri, 23 Nov 2012 04:21:49 +0900 Subject: Enable mobule build with QT_NO_TRANSLATION Change-Id: Id7aeef0d499f48ddc64b4ea3e4dc713db8458c38 Reviewed-by: Oswald Buddenhagen Reviewed-by: Alan Alpert (RIM) --- src/qml/qml/qqmlcompiler.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/qml/qml/qqmlcompiler.cpp') 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(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(ref); Instruction::StoreV4Binding store; -- cgit v1.2.3