From 059f9d056c969ee6f184563b56f44cfef562c31f Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Sun, 11 Jan 2015 12:37:11 +0100 Subject: [PATCH] Move to global variables to file scope Putting them in the anonymous namespace is the same effect as making them "static". --- lib/checkleakautovar.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/checkleakautovar.cpp b/lib/checkleakautovar.cpp index c482aa382..f35ab543d 100644 --- a/lib/checkleakautovar.cpp +++ b/lib/checkleakautovar.cpp @@ -31,12 +31,12 @@ #include //--------------------------------------------------------------------------- -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; } //---------------------------------------------------------------------------