diff --git a/src/checkmemoryleak.h b/src/checkmemoryleak.h index 9daef207a..fb090d899 100644 --- a/src/checkmemoryleak.h +++ b/src/checkmemoryleak.h @@ -148,7 +148,9 @@ public: void check(); +#ifndef UNIT_TESTING private: +#endif bool matchFunctionsThatReturnArg(const Token *tok, const std::string &varname); diff --git a/src/tokenize.h b/src/tokenize.h index 23c75a02b..71e65423c 100644 --- a/src/tokenize.h +++ b/src/tokenize.h @@ -112,7 +112,9 @@ public: */ std::map _classInfoList; +#ifndef UNIT_TESTING private: +#endif /** * Simplify variable declarations