diff --git a/lib/checkunusedfunctions.cpp b/lib/checkunusedfunctions.cpp index e3e0944e7..40217ba31 100644 --- a/lib/checkunusedfunctions.cpp +++ b/lib/checkunusedfunctions.cpp @@ -89,10 +89,10 @@ void CheckUnusedFunctions::parseTokens(const Tokenizer &tokenizer) // No filename set yet.. if (func.filename.empty()) { - func.filename = tokenizer.getFiles()->at(0); + func.filename = tokenizer.getFiles().at(0); } // Multiple files => filename = "+" - else if (func.filename != tokenizer.getFiles()->at(0)) { + else if (func.filename != tokenizer.getFiles().at(0)) { //func.filename = "+"; func.usedOtherFile |= func.usedSameFile; }