diff options
author | Anton Kudryavtsev <a.kudryavtsev@netris.ru> | 2016-10-10 14:54:07 +0300 |
---|---|---|
committer | Anton Kudryavtsev <a.kudryavtsev@netris.ru> | 2016-10-13 17:11:33 +0000 |
commit | eff37a46ce33078f6f601bd724bbb7359b5db055 (patch) | |
tree | a00f7468816f84b641a7ca47b024198036e563ba /src/imports/xmllistmodel | |
parent | a05fec277d0a122e03bb6c7756777729df50b1f2 (diff) |
Qml, Imports: mark some methods as const
These methods do not modify objects.
Change-Id: I67b1a10cfd0b32688500fca3265a96f53afd1b57
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/imports/xmllistmodel')
-rw-r--r-- | src/imports/xmllistmodel/qqmlxmllistmodel_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/xmllistmodel/qqmlxmllistmodel_p.h b/src/imports/xmllistmodel/qqmlxmllistmodel_p.h index 409dfa876d..3a4487a085 100644 --- a/src/imports/xmllistmodel/qqmlxmllistmodel_p.h +++ b/src/imports/xmllistmodel/qqmlxmllistmodel_p.h @@ -194,7 +194,7 @@ public: Q_EMIT isKeyChanged(); } - bool isValid() { + bool isValid() const { return !m_name.isEmpty() && !m_query.isEmpty(); } |