diff options
| author | Eric Schendel <esche@sourceforge.net> | 2002-09-16 17:14:06 +0000 |
|---|---|---|
| committer | Eric Schendel <esche@sourceforge.net> | 2002-09-16 17:14:06 +0000 |
| commit | bc0b1c3f1abf0cc570216bed96d7cc84cdb08052 (patch) | |
| tree | 7cb1e2564ed8a3ffa37126be06997189902258e4 /src/cppunit/XmlOutputter.cpp | |
| parent | e210106003b1e214b12341e4955b7119b0d49f09 (diff) | |
| download | cppunit-bc0b1c3f1abf0cc570216bed96d7cc84cdb08052.tar.gz | |
Const_iterator to iterator and make_pair to pair for sun4 portability
Diffstat (limited to 'src/cppunit/XmlOutputter.cpp')
| -rw-r--r-- | src/cppunit/XmlOutputter.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cppunit/XmlOutputter.cpp b/src/cppunit/XmlOutputter.cpp index ff18a80..26751a7 100644 --- a/src/cppunit/XmlOutputter.cpp +++ b/src/cppunit/XmlOutputter.cpp @@ -64,7 +64,7 @@ XmlOutputter::setRootNode() XmlElement *rootNode = new XmlElement( "TestRun" ); m_xml->setRootElement( rootNode ); - for ( Hooks::const_iterator it = m_hooks.begin(); it != m_hooks.end(); ++it ) + for ( Hooks::iterator it = m_hooks.begin(); it != m_hooks.end(); ++it ) (*it)->beginDocument( m_xml ); FailedTests failedTests; @@ -74,7 +74,7 @@ XmlOutputter::setRootNode() addSuccessfulTests( failedTests, rootNode ); addStatistics( rootNode ); - for ( Hooks::const_iterator itEnd = m_hooks.begin(); itEnd != m_hooks.end(); ++itEnd ) + for ( Hooks::iterator itEnd = m_hooks.begin(); itEnd != m_hooks.end(); ++itEnd ) (*itEnd)->endDocument( m_xml ); } @@ -87,7 +87,7 @@ XmlOutputter::fillFailedTestsMap( FailedTests &failedTests ) while ( itFailure != failures.end() ) { TestFailure *failure = *itFailure++; - failedTests.insert( std::make_pair(failure->failedTest(), failure ) ); + failedTests.insert( std::pair<Test* const, TestFailure*>(failure->failedTest(), failure ) ); } } @@ -137,7 +137,7 @@ XmlOutputter::addStatistics( XmlElement *rootNode ) statisticsElement->addElement( new XmlElement( "Errors", m_result->testErrors() ) ); statisticsElement->addElement( new XmlElement( "Failures", m_result->testFailures() ) ); - for ( Hooks::const_iterator it = m_hooks.begin(); it != m_hooks.end(); ++it ) + for ( Hooks::iterator it = m_hooks.begin(); it != m_hooks.end(); ++it ) (*it)->statisticsAdded( m_xml, statisticsElement ); } @@ -163,7 +163,7 @@ XmlOutputter::addFailedTest( Test *test, testElement->addElement( new XmlElement( "Message", thrownException->what() ) ); - for ( Hooks::const_iterator it = m_hooks.begin(); it != m_hooks.end(); ++it ) + for ( Hooks::iterator it = m_hooks.begin(); it != m_hooks.end(); ++it ) (*it)->failTestAdded( m_xml, testElement, test, failure ); } @@ -190,7 +190,7 @@ XmlOutputter::addSuccessfulTest( Test *test, testElement->addAttribute( "id", testNumber ); testElement->addElement( new XmlElement( "Name", test->getName() ) ); - for ( Hooks::const_iterator it = m_hooks.begin(); it != m_hooks.end(); ++it ) + for ( Hooks::iterator it = m_hooks.begin(); it != m_hooks.end(); ++it ) (*it)->successfulTestAdded( m_xml, testElement, test ); } |
