mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-08 07:10:12 -05:00
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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user