mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-04 05:10:10 -05:00
Remove c_str calls when using stream APIs.
Use an ad-hoc clang tool for matching the calls which should be ported.
This commit is contained in:
@@ -84,7 +84,7 @@ static void cmVariableWatchCommandVariableAccessed(
|
||||
if ( !processed )
|
||||
{
|
||||
cmOStringStream msg;
|
||||
msg << "Variable \"" << variable.c_str() << "\" was accessed using "
|
||||
msg << "Variable \"" << variable << "\" was accessed using "
|
||||
<< accessString << " with value \"" << (newValue?newValue:"") << "\".";
|
||||
makefile->IssueMessage(cmake::LOG, msg.str());
|
||||
}
|
||||
@@ -136,7 +136,7 @@ bool cmVariableWatchCommand
|
||||
if ( variable == "CMAKE_CURRENT_LIST_FILE" )
|
||||
{
|
||||
cmOStringStream ostr;
|
||||
ostr << "cannot be set on the variable: " << variable.c_str();
|
||||
ostr << "cannot be set on the variable: " << variable;
|
||||
this->SetError(ostr.str());
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user