try to make Travis happy by fixing Cppcheck warning

This commit is contained in:
Daniel Marjamäki 2016-12-08 23:12:59 +01:00
parent e9d950d4f5
commit 23280c366d
1 changed files with 2 additions and 2 deletions

View File

@ -26,8 +26,8 @@ AnalyzerInformation::~AnalyzerInformation()
close();
}
static std::string getFilename(const std::string &fullpath) {
std::string afile(fullpath);
static std::string getFilename(const std::string &fullpath)
{
std::string::size_type pos1 = fullpath.find_last_of("/\\");
pos1 = (pos1 == std::string::npos) ? 0U : (pos1 + 1U);
std::string::size_type pos2 = fullpath.rfind('.');