Fix some Clang static analysis warnings

This commit is contained in:
Cameron Gutman committed 2018-07-18 18:39:33 -07:00
1 parent 76d99cd60e
commit a4ad58d9ec
3 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -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()