diff options
author | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2020-09-07 08:24:59 +0200 |
---|---|---|
committer | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2020-09-09 21:53:37 +0200 |
commit | a1cbca44ef40d89f1ff9182e4014f9b8594330d5 (patch) | |
tree | 9938a4ca413b479c483a540999fec0ebd5703c6c /tests/auto | |
parent | 3247f01c5e185eed99113d92c1c2af0f2e068ba4 (diff) |
TLS utils - move runtime check to compile time
While it's possible to instantiate safe_delete using a nullptr, the
check in if-statement is 99.9(9) % of time redundant and equal
to if (true && object). Some compilers will issue a compilation
error (if warnings are treated as errors for example).
Change-Id: Ib593dc53deb6d2e4b77ea5c896610dc536c61b7c
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'tests/auto')
0 files changed, 0 insertions, 0 deletions