Remove unneeded path separator conversion.

This commit is contained in:
Kimmo Varis 2010-07-26 22:49:47 +03:00
parent 2f8d43984f
commit 17395b310d
1 changed files with 1 additions and 3 deletions

View File

@ -741,9 +741,7 @@ unsigned int CppCheck::check()
// If only errors are printed, print filename after the check // If only errors are printed, print filename after the check
if (_settings._errorsOnly == false && it != configurations.begin()) if (_settings._errorsOnly == false && it != configurations.begin())
{ {
std::string fixedpath(fname); std::string fixedpath = Path::simplifyPath(fname);
fixedpath = Path::fromNativeSeparators(fixedpath);
fixedpath = Path::simplifyPath(fixedpath);
fixedpath = Path::toNativeSeparators(fixedpath); fixedpath = Path::toNativeSeparators(fixedpath);
_errorLogger.reportOut(std::string("Checking ") + fixedpath + ": " + cfg + std::string("...")); _errorLogger.reportOut(std::string("Checking ") + fixedpath + ": " + cfg + std::string("..."));
} }