diff options
author | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-07-13 15:09:42 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-07-21 08:33:27 +0000 |
commit | 4d581ceb1d589d603224733275995d14c795a8c9 (patch) | |
tree | bb59d15b92ea1ebdc71ec38f6cf62c7a1f79d8dc /src/plugins/qmltooling/shared | |
parent | 134d980a7fcf61c5440019bcfb3fdfc39c3f5f3c (diff) |
Simplify object/id lookup in QQmlDebugService
By tracking object destruction we can avoid looping over all cached
objects to find out which ones are still OK and we don't have to
manually clear the cache anymore. Looking up objects by source location
is specific to the engine debug service and should be done there.
Change-Id: I7dab73a7bf9c17087784f1bd9c5aef513b31e2c1
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmltooling/shared')
-rw-r--r-- | src/plugins/qmltooling/shared/abstractviewinspector.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/plugins/qmltooling/shared/abstractviewinspector.cpp b/src/plugins/qmltooling/shared/abstractviewinspector.cpp index 06f622a65e..b23cff9a78 100644 --- a/src/plugins/qmltooling/shared/abstractviewinspector.cpp +++ b/src/plugins/qmltooling/shared/abstractviewinspector.cpp @@ -260,7 +260,6 @@ void AbstractViewInspector::onQmlObjectDestroyed(QObject *object) return; QPair<int, int> ids = m_hashObjectsTobeDestroyed.take(object); - QQmlDebugService::removeInvalidObjectsFromHash(); QByteArray response; |