diff options
author | Brad King <brad.king@kitware.com> | 2002-06-19 19:21:49 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2002-06-19 19:21:49 (GMT) |
commit | 07d35e662dc76fa7702d54f4a9b3ced3dac3c969 (patch) | |
tree | 9cde169f2d59b54ac0a779e0ef55d6260452f84c /Source/cmVTKMakeInstantiatorCommand.cxx | |
parent | 27a2cad0fcaa0c3733c0adf532d59df7ba3cde29 (diff) | |
download | CMake-07d35e662dc76fa7702d54f4a9b3ced3dac3c969.zip CMake-07d35e662dc76fa7702d54f4a9b3ced3dac3c969.tar.gz CMake-07d35e662dc76fa7702d54f4a9b3ced3dac3c969.tar.bz2 |
ENH: Added cmStringStream class to wrap std::stringstream or std::strstream depending on the platform. The interface is that of std::stringstream, so no "ends" or "rdbuf()->freeze(0)" lines are needed.
Diffstat (limited to 'Source/cmVTKMakeInstantiatorCommand.cxx')
-rw-r--r-- | Source/cmVTKMakeInstantiatorCommand.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmVTKMakeInstantiatorCommand.cxx b/Source/cmVTKMakeInstantiatorCommand.cxx index a8b3ed0..d649117 100644 --- a/Source/cmVTKMakeInstantiatorCommand.cxx +++ b/Source/cmVTKMakeInstantiatorCommand.cxx @@ -216,10 +216,9 @@ cmVTKMakeInstantiatorCommand std::string cmVTKMakeInstantiatorCommand::GenerateCreationFileName(unsigned int block) { - std::strstream nameStr; - nameStr << m_ClassName.c_str() << block << ".cxx" << std::ends; + cmStringStream nameStr; + nameStr << m_ClassName.c_str() << block << ".cxx"; std::string result = nameStr.str(); - delete [] nameStr.str(); return result; } |