diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2016-05-12 19:33:00 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2016-06-10 17:57:17 +0000 |
commit | cbe62a0e6d0caba8dcb0a63d3af3c458a6298e10 (patch) | |
tree | e1c8e7eedd005708cd30784308262e5ad4800ef4 /src/corelib/kernel/qeventdispatcher_cf_p.h | |
parent | 72393ac3b6a8231d1157c58fe049606dd6c95736 (diff) |
Add move constructor to QDateTime
The move constructor is slightly more interesting than the copy
constructor because we can reset other to a short data state on 64-bit
systems. The assembly of that function is simply:
mov (%rsi),%rax
mov %rax,(%rdi)
movq $0x1,(%rsi)
retq
The move-assignment operator for QDateTime was already there. There's no
need for one for QDateTime::Data since it's never called.
Change-Id: I06bae9392f534e45b3f1ffff144dffdd7f23b170
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/kernel/qeventdispatcher_cf_p.h')
0 files changed, 0 insertions, 0 deletions