@@ -141,7 +141,7 @@ void VarInfo::possibleUsageAll(const std::string &functionName)
141141
142142void CheckLeakAutoVar::leakError (const Token *tok, const std::string &varname, int type)
143143{
144- CheckMemoryLeak checkmemleak (mTokenizer , mErrorLogger .get (), mSettings );
144+ CheckMemoryLeak checkmemleak (mTokenizer , mErrorLogger .value (), mSettings );
145145 if (Library::isresource (type))
146146 checkmemleak.resourceLeakError (tok, varname);
147147 else
@@ -150,14 +150,14 @@ void CheckLeakAutoVar::leakError(const Token *tok, const std::string &varname, i
150150
151151void CheckLeakAutoVar::mismatchError (const Token *deallocTok, const Token *allocTok, const std::string &varname)
152152{
153- CheckMemoryLeak c (mTokenizer , mErrorLogger .get (), mSettings );
153+ CheckMemoryLeak c (mTokenizer , mErrorLogger .value (), mSettings );
154154 const std::list<const Token *> callstack = { allocTok, deallocTok };
155155 c.mismatchAllocDealloc (callstack, varname);
156156}
157157
158158void CheckLeakAutoVar::deallocUseError (const Token *tok, const std::string &varname)
159159{
160- CheckMemoryLeak c (mTokenizer , mErrorLogger .get (), mSettings );
160+ CheckMemoryLeak c (mTokenizer , mErrorLogger .value (), mSettings );
161161 c.deallocuseError (tok, varname);
162162}
163163
0 commit comments