@@ -79,7 +79,7 @@ const char * CppCheck::extraVersion()
7979
8080unsigned int CppCheck::check (const std::string &path)
8181{
82- std::ifstream fin (path. c_str () );
82+ std::ifstream fin (path);
8383 return processFile (Path::simplifyPath (path), emptyString, fin);
8484}
8585
@@ -101,7 +101,7 @@ unsigned int CppCheck::check(const ImportProject::FileSettings &fs)
101101 if (fs.platformType != Settings::Unspecified) {
102102 temp._settings .platform (fs.platformType );
103103 }
104- std::ifstream fin (fs.filename . c_str () );
104+ std::ifstream fin (fs.filename );
105105 return temp.processFile (Path::simplifyPath (fs.filename ), fs.cfg , fin);
106106}
107107
@@ -196,7 +196,7 @@ unsigned int CppCheck::processFile(const std::string& filename, const std::strin
196196 std::ofstream fdump;
197197 if (_settings.dump ) {
198198 const std::string dumpfile (_settings.dumpFile .empty () ? (filename + " .dump" ) : _settings.dumpFile );
199- fdump.open (dumpfile. c_str () );
199+ fdump.open (dumpfile);
200200 if (fdump.is_open ()) {
201201 fdump << " <?xml version=\" 1.0\" ?>" << std::endl;
202202 fdump << " <dumps>" << std::endl;
@@ -806,7 +806,7 @@ void CppCheck::analyseWholeProgram(const std::string &buildDir, const std::map<s
806806
807807 // Load all analyzer info data..
808808 const std::string filesTxt (buildDir + " /files.txt" );
809- std::ifstream fin (filesTxt. c_str () );
809+ std::ifstream fin (filesTxt);
810810 std::string filesTxtLine;
811811 while (std::getline (fin, filesTxtLine)) {
812812 const std::string::size_type firstColon = filesTxtLine.find (' :' );
0 commit comments