Fix some Clang static analysis warnings
This commit is contained in:
parent
76d99cd60e
commit
a4ad58d9ec
3 changed files with 7 additions and 7 deletions
|
|
@ -1,5 +1,5 @@
|
|||
#pragma once
|
||||
|
||||
#define THROW_BAD_ALLOC_IF_NULL(x) \
|
||||
if ((x) == nullptr) throw new std::bad_alloc()
|
||||
if ((x) == nullptr) throw std::bad_alloc()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue