Move to global variables to file scope

Putting them in the anonymous namespace
is the same effect as making them "static".
This commit is contained in:
Thomas Jarosch 2015-01-11 12:37:11 +01:00
parent 70ace39a80
commit 059f9d056c
1 changed files with 3 additions and 3 deletions

View File

@ -31,12 +31,12 @@
#include <iostream>
//---------------------------------------------------------------------------
const int DEALLOC = -1;
const int NOALLOC = 0;
// Register this check class (by creating a static instance of it)
namespace {
CheckLeakAutoVar instance;
const int DEALLOC = -1;
const int NOALLOC = 0;
}
//---------------------------------------------------------------------------