diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-20 00:15:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-20 00:15:42 +0300 |
commit | f96919885dd0e5ae0de4a8517e76419304ca8d36 (patch) | |
tree | 2c39f6da9bd97c45d77c77f1b9ee0505f38be0e6 /src/utils/delete2.h | |
parent | 1dbf1cf1d87a38a327673b69c184ad662bd12cc4 (diff) | |
download | plus-f96919885dd0e5ae0de4a8517e76419304ca8d36.tar.gz plus-f96919885dd0e5ae0de4a8517e76419304ca8d36.tar.bz2 plus-f96919885dd0e5ae0de4a8517e76419304ca8d36.tar.xz plus-f96919885dd0e5ae0de4a8517e76419304ca8d36.zip |
Fix code style.
Diffstat (limited to 'src/utils/delete2.h')
-rw-r--r-- | src/utils/delete2.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils/delete2.h b/src/utils/delete2.h index 0bccaf2c3..f9fbb7f02 100644 --- a/src/utils/delete2.h +++ b/src/utils/delete2.h @@ -27,4 +27,10 @@ var = nullptr;\ } +#define delete2Arr(var) \ + {\ + delete []var;\ + var = nullptr;\ + } + #endif // UTILS_DELETE2_H |