Skip to content

Commit

Permalink
Replacing reference with pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
williamfgc committed Mar 7, 2019
1 parent d1d7176 commit 7381d9e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions thirdparty/KWSys/adios2sys/SystemTools.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -4668,10 +4668,10 @@ void SystemTools::ClassInitialize()

void SystemTools::ClassFinalize()
{
auto lf_Delete = [](void*& pointer) {
if (pointer != nullptr) {
delete pointer;
pointer = nullptr;
auto lf_Delete = [](void** pointer) {
if (*pointer != nullptr) {
delete *pointer;
*pointer = nullptr;
}
};

Expand Down

0 comments on commit 7381d9e

Please sign in to comment.