From 46551b434973f37f7d5e0049fc451f61cb234244 Mon Sep 17 00:00:00 2001 From: "Steve M. Robbins" Date: Sat, 7 Jul 2001 15:05:47 +0000 Subject: Use strstream if stringstream unavailable. --- src/cppunit/TestFactoryRegistry.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/cppunit/TestFactoryRegistry.cpp') 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 -#include #include + +#include #include #include @@ -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 * -- cgit v1.2.1