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:
Stephen Kelly
2014-03-11 13:35:32 +01:00
parent 21c573f682
commit af8a1643c1
49 changed files with 297 additions and 297 deletions
+2 -2
View File
@@ -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;
}