There is no need to clear a class member string in the Ctor.

This commit is contained in:
orbitcowboy 2016-12-27 21:20:17 +01:00
parent 85ae3adeb2
commit 24332b540d
1 changed files with 2 additions and 2 deletions

View File

@ -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;
};