diff --git a/src/checkstl.cpp b/src/checkstl.cpp index 9acc0b40e..8c33129c4 100644 --- a/src/checkstl.cpp +++ b/src/checkstl.cpp @@ -22,9 +22,11 @@ #include "token.h" -// Create a static instance of this -static CheckStl instance; - +// Register this check class (by creating a static instance of it) +namespace +{ + CheckStl instance; +} void CheckStl::iterators() {