summaryrefslogtreecommitdiff
path: root/src/cppunit/TestFactoryRegistry.cpp
diff options
context:
space:
mode:
authorSteve M. Robbins <smr@sumost.ca>2001-07-07 15:05:47 +0000
committerSteve M. Robbins <smr@sumost.ca>2001-07-07 15:05:47 +0000
commit46551b434973f37f7d5e0049fc451f61cb234244 (patch)
treeceeede8525f67c95be27570070815be443bc934b /src/cppunit/TestFactoryRegistry.cpp
parente3233e2ff1486e66bb85f81a4ac24f2a9a846a5c (diff)
downloadcppunit-46551b434973f37f7d5e0049fc451f61cb234244.tar.gz
Use strstream if stringstream unavailable.
Diffstat (limited to 'src/cppunit/TestFactoryRegistry.cpp')
-rw-r--r--src/cppunit/TestFactoryRegistry.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cppunit/TestFactoryRegistry.cpp b/src/cppunit/TestFactoryRegistry.cpp
index aa6372a..c012295 100644
--- a/src/cppunit/TestFactoryRegistry.cpp
+++ b/src/cppunit/TestFactoryRegistry.cpp
@@ -1,6 +1,6 @@
-#include <cppunit/Portability.h>
-#include <sstream>
#include <utility>
+
+#include <cppunit/Portability.h>
#include <cppunit/TestSuite.h>
#include <cppunit/extensions/TestFactoryRegistry.h>
@@ -67,12 +67,12 @@ TestFactoryRegistry::registerFactory( const std::string &name,
void
TestFactoryRegistry::registerFactory( TestFactory *factory )
{
- std::ostringstream stream;
static int serialNumber = 1;
- stream << "@Dummy@" << serialNumber++;
- std::string name( stream.str() );
- registerFactory( name, factory );
+ OStringStream ost;
+ ost << "@Dummy@" << serialNumber++;
+
+ registerFactory( ost.str(), factory );
}
Test *