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:
parent
70ace39a80
commit
059f9d056c
|
@ -31,12 +31,12 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
const int DEALLOC = -1;
|
|
||||||
const int NOALLOC = 0;
|
|
||||||
|
|
||||||
// Register this check class (by creating a static instance of it)
|
// Register this check class (by creating a static instance of it)
|
||||||
namespace {
|
namespace {
|
||||||
CheckLeakAutoVar instance;
|
CheckLeakAutoVar instance;
|
||||||
|
|
||||||
|
const int DEALLOC = -1;
|
||||||
|
const int NOALLOC = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue