diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-06-27 16:47:06 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-06-28 14:56:20 +0200 |
commit | 7259642e35fc8a1d354697f8b1700cbadd540870 (patch) | |
tree | 72253c00d19777677007eae052af1f1b5b0c186b /src/qml/qml/qqmlcontextwrapper.cpp | |
parent | f418bbb8836a648bdd08728e88323a4c8db9140c (diff) |
Get rid of QQmlIntegerCache
Replace by the new IdentifierIntHash.
Change-Id: Ib210cd898a30ad3e2f9349387e1a74d92ed5f831
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlcontextwrapper.cpp')
-rw-r--r-- | src/qml/qml/qqmlcontextwrapper.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/qml/qqmlcontextwrapper.cpp b/src/qml/qml/qqmlcontextwrapper.cpp index 60345f6626..4a66c7552d 100644 --- a/src/qml/qml/qqmlcontextwrapper.cpp +++ b/src/qml/qml/qqmlcontextwrapper.cpp @@ -198,8 +198,8 @@ Value QmlContextWrapper::get(Managed *m, String *name, bool *hasProperty) while (context) { // Search context properties - if (context->propertyNames) { - int propertyIdx = context->propertyNames->value(name); + if (context->propertyNames.count()) { + int propertyIdx = context->propertyNames.value(name); if (propertyIdx != -1) { @@ -302,7 +302,7 @@ void QmlContextWrapper::put(Managed *m, String *name, const Value &value) while (context) { // Search context properties - if (context->propertyNames && -1 != context->propertyNames->value(name)) + if (context->propertyNames.count() && -1 != context->propertyNames.value(name)) return; // Search scope object |