From 17395b310de773f92f945d7d16f1b2c8d6c2de59 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Mon, 26 Jul 2010 22:49:47 +0300 Subject: [PATCH] Remove unneeded path separator conversion. --- lib/cppcheck.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 9c6988bf4..f85448234 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -741,9 +741,7 @@ unsigned int CppCheck::check() // If only errors are printed, print filename after the check if (_settings._errorsOnly == false && it != configurations.begin()) { - std::string fixedpath(fname); - fixedpath = Path::fromNativeSeparators(fixedpath); - fixedpath = Path::simplifyPath(fixedpath); + std::string fixedpath = Path::simplifyPath(fname); fixedpath = Path::toNativeSeparators(fixedpath); _errorLogger.reportOut(std::string("Checking ") + fixedpath + ": " + cfg + std::string("...")); }