diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2018-07-11 20:38:58 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2018-07-26 16:35:59 +0000 |
commit | 0b688e29556bfee806bedb17b89a6ce6689e7979 (patch) | |
tree | 2a8d136cb2e321f7568324475f6b5ddb46c6be84 /LICENSE.QT-LICENSE-AGREEMENT-4.0 | |
parent | a5d8f00b3b979d7846ce7029edf4187b96ce1f4e (diff) |
Check against copying the husk left by a move
The copy-assign operator tests against other.d being NULL but the
copy-constructor didn't. This can only matter if the value being
copied has been moved from, so we could probably replace with an
assertion in practice, but we should at least be consistent.
Amended test to check this case too; and verified new test crashes
without this fix.
Change-Id: I46872a677775944bbdf6a9112e719873e574ae60
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'LICENSE.QT-LICENSE-AGREEMENT-4.0')
0 files changed, 0 insertions, 0 deletions