diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2020-06-06 00:27:44 +0200 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2020-07-13 01:32:53 +0200 |
commit | 43fa292ff621550d0977908b499fb54096251825 (patch) | |
tree | 7f4f06e5dc4f70dc01080ac2b78a4c617172c1b5 /src/gui/kernel/qevent.h | |
parent | 23444d4b26a13677a2029a2b5a53bfae76647b71 (diff) |
QVariant::setValue(): enable move semantics
Given we optimize for the case where the new value is of the
same type of the one already stored in the variant, enable move
assignment for that case.
As a drive-by, avoid a path to detach() for data() if we know
we're detached.
Change-Id: I9abbdc10637ce77ebb747b49d83e1ef914d997bb
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/kernel/qevent.h')
0 files changed, 0 insertions, 0 deletions