Remove redundant c_str() calls

This commit is contained in:
Daniel Pfeifer
2016-10-30 18:34:06 +01:00
parent c58c739da7
commit 602b78aa79
14 changed files with 26 additions and 29 deletions
+2 -2
View File
@@ -206,7 +206,7 @@ protected:
std::string message = "Skipping ";
message += includeFile;
message += " for file ";
message += info->FullPath.c_str();
message += info->FullPath;
cmSystemTools::Error(message.c_str(), CM_NULLPTR);
}
continue;
@@ -520,7 +520,7 @@ bool cmOutputRequiredFilesCommand::InitialPass(
const cmDependInformation* info = md.FindDependencies(this->File.c_str());
if (info) {
// write them out
FILE* fout = cmsys::SystemTools::Fopen(this->OutputFile.c_str(), "w");
FILE* fout = cmsys::SystemTools::Fopen(this->OutputFile, "w");
if (!fout) {
std::string err = "Can not open output file: ";
err += this->OutputFile;