summaryrefslogtreecommitdiff
path: root/src/msvc6
diff options
context:
space:
mode:
authorBaptiste Lepilleur <gaiacrtn@free.fr>2003-03-11 19:06:34 +0000
committerBaptiste Lepilleur <gaiacrtn@free.fr>2003-03-11 19:06:34 +0000
commit4ca86cd4fd9b7a8c2dd60c1b62724b18b7bd5ec7 (patch)
tree12616b573402b989e34a38514ae625cbf7b85f94 /src/msvc6
parentc349ff0461024ca2cbc1e9844abfdb5996338f04 (diff)
downloadcppunit-4ca86cd4fd9b7a8c2dd60c1b62724b18b7bd5ec7.tar.gz
Include/cppunit/tools/Algorithm.
include/cppunit/tools/Algorithm.h: * src/cppunit/TestResult.cpp: * src/msvc6/testrunner/TestRunnerModel.cpp: added removeFromSequence algorithm in Algorithm.h to fix STLPort compatibility issue (std::remove use the one of cstdio instead of algorithm). Bug #694971. * include/cppunit/extensions/TestNamer.h: fixed bug #662666 (missing include for typeinfo). * src/cppunit/TestResult.cpp: TestFailure are no longer passed as temporary, but explicitely instantiated on the stack. Work around AIX compiler bug.
Diffstat (limited to 'src/msvc6')
-rw-r--r--src/msvc6/testrunner/TestRunnerModel.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/msvc6/testrunner/TestRunnerModel.cpp b/src/msvc6/testrunner/TestRunnerModel.cpp
index a3ea830..893c107 100644
--- a/src/msvc6/testrunner/TestRunnerModel.cpp
+++ b/src/msvc6/testrunner/TestRunnerModel.cpp
@@ -6,6 +6,7 @@
#include "StdAfx.h"
#include "TestRunnerModel.h"
+#include <cppunit/tools/Algorithm.h>
#include <algorithm>
#include <stdexcept>
#include <cppunit/testsuite.h>
@@ -36,9 +37,7 @@ TestRunnerModel::history() const
void
TestRunnerModel::selectHistoryTest( CPPUNIT_NS::Test *test )
{
- History::iterator end =
- std::remove( m_history.begin(), m_history.end(), test );
- m_history.erase( end, m_history.end() );
+ removeFromsSequence( m_history, test );
if ( test != NULL )
m_history.push_front( test );