Fix some Clang static analysis warnings

This commit is contained in:
Cameron Gutman 2018-07-18 18:39:33 -07:00
commit a4ad58d9ec
3 changed files with 7 additions and 7 deletions

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()