From c826393470c6012e58cac9731d6a2cf96e2ff2b8 Mon Sep 17 00:00:00 2001 From: Eric Schendel Date: Mon, 16 Sep 2002 17:21:20 +0000 Subject: Map needs comparator, make_pair to pair, and map dereference fix (SUN4) --- src/cppunit/TestFactoryRegistry.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/cppunit/TestFactoryRegistry.cpp') diff --git a/src/cppunit/TestFactoryRegistry.cpp b/src/cppunit/TestFactoryRegistry.cpp index 663237a..d0339a9 100644 --- a/src/cppunit/TestFactoryRegistry.cpp +++ b/src/cppunit/TestFactoryRegistry.cpp @@ -11,7 +11,7 @@ CPPUNIT_NS_BEGIN class TestFactoryRegistryList { private: - typedef CppUnitMap Registries; + typedef CppUnitMap > Registries; Registries m_registries; enum State { @@ -41,10 +41,10 @@ private: if ( foundIt == m_registries.end() ) { TestFactoryRegistry *factory = new TestFactoryRegistry( name ); - m_registries.insert( std::make_pair( name, factory ) ); + m_registries.insert( std::pair( name, factory ) ); return factory; } - return foundIt->second; + return (*foundIt).second; } public: @@ -56,7 +56,7 @@ public: ~TestFactoryRegistryList() { for ( Registries::iterator it = m_registries.begin(); it != m_registries.end(); ++it ) - delete it->second; + delete (*it).second; stateFlag( destroyed ); } -- cgit v1.2.1