From 23c7ea0eeb8eb15b310475b08cf2418ef3035ae8 Mon Sep 17 00:00:00 2001 From: "Steve M. Robbins" Date: Fri, 12 Jan 2007 04:56:34 +0000 Subject: Arrange class initializers in correct order. --- src/cppunit/DynamicLibraryManagerException.cpp | 4 ++-- src/cppunit/TestCaseDecorator.cpp | 4 ++-- src/cppunit/TextTestRunner.cpp | 4 ++-- src/cppunit/XmlDocument.cpp | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/cppunit') diff --git a/src/cppunit/DynamicLibraryManagerException.cpp b/src/cppunit/DynamicLibraryManagerException.cpp index 71bbb76..8498652 100644 --- a/src/cppunit/DynamicLibraryManagerException.cpp +++ b/src/cppunit/DynamicLibraryManagerException.cpp @@ -9,8 +9,8 @@ DynamicLibraryManagerException::DynamicLibraryManagerException( const std::string &libraryName, const std::string &errorDetail, Cause cause ) - : m_cause( cause ) - , std::runtime_error( "" ) + : std::runtime_error( "" ), + m_cause( cause ) { if ( cause == loadingFailed ) m_message = "Failed to load dynamic library: " + libraryName + "\n" + diff --git a/src/cppunit/TestCaseDecorator.cpp b/src/cppunit/TestCaseDecorator.cpp index 4fb8f80..a7229f4 100644 --- a/src/cppunit/TestCaseDecorator.cpp +++ b/src/cppunit/TestCaseDecorator.cpp @@ -4,8 +4,8 @@ CPPUNIT_NS_BEGIN TestCaseDecorator::TestCaseDecorator( TestCase *test ) - : m_test( test ) - , TestCase( test->getName() ) + : TestCase( test->getName() ), + m_test( test ) { } diff --git a/src/cppunit/TextTestRunner.cpp b/src/cppunit/TextTestRunner.cpp index 8ac76c6..1534ec0 100644 --- a/src/cppunit/TextTestRunner.cpp +++ b/src/cppunit/TextTestRunner.cpp @@ -18,9 +18,9 @@ CPPUNIT_NS_BEGIN * \param outputter used to print text result. Owned by the runner. */ TextTestRunner::TextTestRunner( Outputter *outputter ) - : m_outputter( outputter ) - , m_result( new TestResultCollector() ) + : m_result( new TestResultCollector() ) , m_eventManager( new TestResult() ) + , m_outputter( outputter ) { if ( !m_outputter ) m_outputter = new TextOutputter( m_result, stdCOut() ); diff --git a/src/cppunit/XmlDocument.cpp b/src/cppunit/XmlDocument.cpp index 8ad8575..31f9115 100644 --- a/src/cppunit/XmlDocument.cpp +++ b/src/cppunit/XmlDocument.cpp @@ -8,8 +8,8 @@ CPPUNIT_NS_BEGIN XmlDocument::XmlDocument( const std::string &encoding, const std::string &styleSheet ) - : m_rootElement( new XmlElement( "DummyRoot" ) ) - , m_styleSheet( styleSheet ) + : m_styleSheet( styleSheet ) + , m_rootElement( new XmlElement( "DummyRoot" ) ) , m_standalone( true ) { setEncoding( encoding ); -- cgit v1.2.1