diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-03-11 12:35:32 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-03-11 14:03:50 (GMT) |
commit | af8a1643c1a42aa3b276a50bca10a4faab176764 (patch) | |
tree | e43581126113bdad071f92dbe531b5d7d1009660 /Source/cmVariableWatchCommand.cxx | |
parent | 21c573f682f9eafbc8d4402f7febbb1bec1cb86a (diff) | |
download | CMake-af8a1643c1a42aa3b276a50bca10a4faab176764.zip CMake-af8a1643c1a42aa3b276a50bca10a4faab176764.tar.gz CMake-af8a1643c1a42aa3b276a50bca10a4faab176764.tar.bz2 |
Remove c_str calls when using stream APIs.
Use an ad-hoc clang tool for matching the calls which should be
ported.
Diffstat (limited to 'Source/cmVariableWatchCommand.cxx')
-rw-r--r-- | Source/cmVariableWatchCommand.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmVariableWatchCommand.cxx b/Source/cmVariableWatchCommand.cxx index 3c1fe46..debe243 100644 --- a/Source/cmVariableWatchCommand.cxx +++ b/Source/cmVariableWatchCommand.cxx @@ -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; } |