diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-07-23 22:25:26 +0300 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2016-11-30 07:24:52 +0000 |
commit | 0cdae477e32a312a02eb6be4d82ed1731f617170 (patch) | |
tree | 59c7d1d0b32d029f468dae1adc33d342bec6d1a7 /src/corelib/tools/qcommandlineoption.h | |
parent | 2fd3d8ea9e3e1829653942431070a83569bab6eb (diff) |
QListViewItem: add constexpr
This class is just a record with a bit of functionality on it.
To prevent pessimizing it compared to a C struct with the same
contents, mark all operations constexpr and remove the point-
less copy ctor (the generated one is just fine).
Converge on passing QRect, QSize, QPoint by value. Was mixed
cref and value passing before.
Saves ~1KiB each in text and data size on an UBSan build,
somewhat less, of course, on a normal one.
Change-Id: Ibae16792d822ff183a0c542380501978f2108d93
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qcommandlineoption.h')
0 files changed, 0 insertions, 0 deletions