diff --git a/lib/checkunusedfunctions.cpp b/lib/checkunusedfunctions.cpp index cf714b3f1..7ba9b34cb 100644 --- a/lib/checkunusedfunctions.cpp +++ b/lib/checkunusedfunctions.cpp @@ -307,8 +307,8 @@ std::string CheckUnusedFunctions::analyzerInfo() const namespace { struct Location { - Location() : fileName(""), lineNumber(0) {} - Location(const std::string &f, int l) : fileName(f), lineNumber(l) {} + Location() : lineNumber(0) {} + Location(const std::string &f, const int l) : fileName(f), lineNumber(l) {} std::string fileName; int lineNumber; };