mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 14:40:26 -06:00
Remove some c_str() calls.
Use the clang RemoveCStrCalls tool to automatically migrate the code. This was only run on linux, so does not have any positive or negative effect on other platforms.
This commit is contained in:
@@ -38,7 +38,7 @@ bool cmConfigureFileCommand
|
||||
e << "input location\n"
|
||||
<< " " << this->InputFile << "\n"
|
||||
<< "is a directory but a file was expected.";
|
||||
this->SetError(e.str().c_str());
|
||||
this->SetError(e.str());
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -61,14 +61,14 @@ bool cmConfigureFileCommand
|
||||
{
|
||||
std::string e = "attempted to configure a file: " + this->OutputFile
|
||||
+ " into a source directory.";
|
||||
this->SetError(e.c_str());
|
||||
this->SetError(e);
|
||||
cmSystemTools::SetFatalErrorOccured();
|
||||
return false;
|
||||
}
|
||||
std::string errorMessage;
|
||||
if (!this->NewLineStyle.ReadFromArguments(args, errorMessage))
|
||||
{
|
||||
this->SetError(errorMessage.c_str());
|
||||
this->SetError(errorMessage);
|
||||
return false;
|
||||
}
|
||||
this->CopyOnly = false;
|
||||
|
||||
Reference in New Issue
Block a user