diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2019-10-31 14:21:05 +0100 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2019-11-04 19:28:27 +0000 |
commit | b33b615f4a4ac4d61bbce320783d5cca6edd91d1 (patch) | |
tree | 42d052c6ba5bb6c2db4c53f0099288193a47a3fa /examples/qt3d/exampleresources/metalbarrel.qrc | |
parent | 51b09ca0b2506f3cdfd025511a68888ed959b6d5 (diff) |
QNode: stop using hash<node,connection> for bookkeeping5.13
It is totally valid to have actually the same node used for 2 distinct
connections (e.g setting 2 different node properties to the same node).
With the hash, the second setter call would overwrite the first connection
resulting in leaving a dangling connection around potentially resulting in
crashes.
Instead use a QVector<pair<node, connection>> and adjust code accordingly.
Change-Id: I49870c409c3f7b629c8f1bdfcb8757a904db2490
Reviewed-by: Mike Krus <mike.krus@kdab.com>
(cherry picked from commit 906f8a62f89a7ce2343a155e6db62616e66dc14b)
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'examples/qt3d/exampleresources/metalbarrel.qrc')
0 files changed, 0 insertions, 0 deletions