mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 14:19:59 -05: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:
@@ -397,12 +397,12 @@ bool cmListFileParser::AddArgument(cmListFileLexer_Token* token,
|
||||
<< "Argument not separated from preceding token by whitespace.";
|
||||
if(isError)
|
||||
{
|
||||
this->Makefile->IssueMessage(cmake::FATAL_ERROR, m.str().c_str());
|
||||
this->Makefile->IssueMessage(cmake::FATAL_ERROR, m.str());
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
this->Makefile->IssueMessage(cmake::AUTHOR_WARNING, m.str().c_str());
|
||||
this->Makefile->IssueMessage(cmake::AUTHOR_WARNING, m.str());
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user