diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-01-16 20:24:03 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2016-01-17 13:23:10 +0000 |
commit | d569f37dfd4ca9b2b704e13b95fab96abe0b0f97 (patch) | |
tree | 777b0c8cf0125d8806d03e1198e59b28a79e508a /src/widgets/graphicsview/qgraphicslayoutitem.cpp | |
parent | a0cee9916a980d6a670c76de0ba818eda54589bb (diff) |
QGraphicsView: Graph: don't allocate QHashes on the heap
... just so you can observe their absence with QHash::value()
returning nullptr.
Instead, use find() + comparison to end() to detect presence
or absence.
Simplifies quite a bit of code.
Change-Id: Ifd7921bfc8102677ea345ae37d38da31b8105426
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/widgets/graphicsview/qgraphicslayoutitem.cpp')
0 files changed, 0 insertions, 0 deletions