diff options
author | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-04-08 14:49:41 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-04-14 13:07:46 +0000 |
commit | e600b04282e964f64f9db7795cef15da32a51b21 (patch) | |
tree | 826eab0863f8cea4ca60415bc03020de41120a79 /src/qml/qml | |
parent | f136724f2cefe97fda13e942674a5e3677c8cd2e (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')
-rw-r--r-- | src/qml/qml/qqmlcustomparser_p.h | 2 |
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; |