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

View File

@@ -65,7 +65,7 @@ bool cmWriteFileCommand::InitialPass(std::vector<std::string> const& args,
overwrite ? std::ios::out : std::ios::app);
if (!file) {
std::string error = "Internal CMake error when trying to open file: ";
error += fileName.c_str();
error += fileName;
error += " for writing.";
this->SetError(error);
return false;