diff options
author | Albert Astals Cid <aacid@kde.org> | 2019-12-03 23:38:36 +0100 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2019-12-03 23:38:36 +0100 |
commit | 36bc1703a7252f3c6f0a6059cd99419152b60a6f (patch) | |
tree | 41a0daf67ae592d3accad371f5e031ee294e6c2b /regtest | |
parent | 4163bccb07191da0e6e6fe2aaa78e01007261fe2 (diff) |
Fix calling a function on a null pointer
It wasn't crashing but it's defenitely undefined behaviour.
Now instead of calling copy that calls the constructor we call the
constructor directly, which deals fine with a null "other" to be created
from
Also some const
Diffstat (limited to 'regtest')
0 files changed, 0 insertions, 0 deletions