diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-01-08 19:55:49 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2016-01-14 12:48:10 +0000 |
commit | a836b4735c9e3cea9ba3129c9d2fb7d63b01ebc9 (patch) | |
tree | 8d3be5b41153087a03c480340e71fd1b62d228b0 /src/dbus/qdbusconnection_p.h | |
parent | fb1863e64a022a25bf11c166835e052645eb3e8e (diff) |
QXcbXSettings: replace a QLinkedList with a std::vector
Required to change an erase() loop into std::remove_if to
avoid running into quadratic behavior.
While at it, made QXcbXSettingsCallback a proper struct,
used aggregate initialization, and ported another loop to
C++11 range-for.
Saves ~0.5KiB in text size on optimized GCC 5.3 Linux AMD64
builds, and a lot of heap allocations.
Change-Id: I228bb853519ed2590375dc511e527f47bb8daa34
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/dbus/qdbusconnection_p.h')
0 files changed, 0 insertions, 0 deletions