diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2016-05-26 10:28:55 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2016-05-26 19:58:06 +0000 |
commit | 18f96551629346599e0b74c3d093697ef494819a (patch) | |
tree | b7ccf029aa8fd271d54705323528186be0c4f2fa /src/qml/compiler/qqmltypecompiler_p.h | |
parent | e850416fcffe48cc19cdbf6a01f759964815681c (diff) |
Simplify id and alias collection
Ids and aliases that refer to their target by id are bound to the scope of
components. Instead of determining this boundary through a binary search for
bindings that refer to the inner object, we can simply query the flags of the
component object itself as to when to stop. This is based on the assumption
that a component has only one binding anyway.
Change-Id: I9a555ca95f8274b6d9a98793a2c946f47348f9d4
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'src/qml/compiler/qqmltypecompiler_p.h')
-rw-r--r-- | src/qml/compiler/qqmltypecompiler_p.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/qml/compiler/qqmltypecompiler_p.h b/src/qml/compiler/qqmltypecompiler_p.h index 48dffb59c4..2b84bc7ebe 100644 --- a/src/qml/compiler/qqmltypecompiler_p.h +++ b/src/qml/compiler/qqmltypecompiler_p.h @@ -273,9 +273,6 @@ protected: // indices of the objects that are actually Component {} QVector<int> componentRoots; - // indices of objects that are the beginning of a new component - // scope. This is sorted and used for binary search. - QVector<quint32> componentBoundaries; int _componentIndex; QHash<int, int> _idToObjectIndex; |