aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlcustomparser_p.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@theqtcompany.com>2015-04-08 14:49:41 +0200
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2015-04-14 13:07:46 +0000
commite600b04282e964f64f9db7795cef15da32a51b21 (patch)
tree826eab0863f8cea4ca60415bc03020de41120a79 /src/qml/qml/qqmlcustomparser_p.h
parentf136724f2cefe97fda13e942674a5e3677c8cd2e (diff)
Cleanup: Fix const'ness of the property binding validator code
The property validator is supposed to validate the proposed property bindings and abort type compilation if necessary. As such it is a read-only pass through the data structures and therefore we make it const. However it does have a side-effect of collecting some state, which however is "write-only" and therefore marked as mutable. Those variables are written to, but not read during this pass. Change-Id: I6a3655fedbd6691b7498cf82ca1c8e21dd635bd3 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlcustomparser_p.h')
-rw-r--r--src/qml/qml/qqmlcustomparser_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlcustomparser_p.h b/src/qml/qml/qqmlcustomparser_p.h
index 15ca126365..88282b1bbc 100644
--- a/src/qml/qml/qqmlcustomparser_p.h
+++ b/src/qml/qml/qqmlcustomparser_p.h
@@ -100,7 +100,7 @@ protected:
private:
QList<QQmlError> exceptions;
- QQmlCustomParserCompilerBackend *compiler;
+ const QQmlCustomParserCompilerBackend *compiler;
Flags m_flags;
QBiPointer<const QQmlImports, QQmlTypeNameCache> imports;
friend class QQmlPropertyValidator;