There is no need to clear a class member string in the Ctor.
This commit is contained in:
parent
85ae3adeb2
commit
24332b540d
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue