summaryrefslogtreecommitdiffstats
path: root/Source/cmStringCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-02-17 13:44:22 (GMT)
committerBrad King <brad.king@kitware.com>2011-02-17 13:44:22 (GMT)
commit006124b44618db3ed672c7ea069b174b966429a1 (patch)
tree6b3ca0e679f9f5666c3f35d84bcaa0bba890a23e /Source/cmStringCommand.cxx
parent1462561a8cab7cf3cad9979019778f3c13b0bdf9 (diff)
downloadCMake-006124b44618db3ed672c7ea069b174b966429a1.zip
CMake-006124b44618db3ed672c7ea069b174b966429a1.tar.gz
CMake-006124b44618db3ed672c7ea069b174b966429a1.tar.bz2
Avoid direct use of std::stringstream
In method cmStringCommand::HandleFindCommand added by parent commit use the cmOStringStream compatibility wrapper instead of std::stringstream.
Diffstat (limited to 'Source/cmStringCommand.cxx')
-rw-r--r--Source/cmStringCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmStringCommand.cxx b/Source/cmStringCommand.cxx
index 1f873e2..19d2369 100644
--- a/Source/cmStringCommand.cxx
+++ b/Source/cmStringCommand.cxx
@@ -553,7 +553,7 @@ bool cmStringCommand::HandleFindCommand(std::vector<std::string> const&
}
if(std::string::npos != pos)
{
- std::stringstream s;
+ cmOStringStream s;
s << pos;
this->Makefile->AddDefinition(outvar.c_str(), s.str().c_str());
return true;