From 773ba28bfb3ce86dd2f9704d39d60b00d5f30b77 Mon Sep 17 00:00:00 2001 From: Tobias Lippert Date: Thu, 15 Aug 2013 22:27:46 +0200 Subject: Bug # 51154: cppunit warning cleaning This patch allows to compile the code with gcc's -Weffc++ It consists mostly of making copy constructors and assignment operators explicit and private, and of initializing all members in initializer lists. Change-Id: I6f1cae812c58e3791c2386a1288501cf2f559610 Reviewed-on: https://gerrit.libreoffice.org/5424 Reviewed-by: Tor Lillqvist Tested-by: Tor Lillqvist --- src/cppunit/TestPath.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/cppunit/TestPath.cpp') diff --git a/src/cppunit/TestPath.cpp b/src/cppunit/TestPath.cpp index a2783a2..5affffb 100644 --- a/src/cppunit/TestPath.cpp +++ b/src/cppunit/TestPath.cpp @@ -8,11 +8,13 @@ CPPUNIT_NS_BEGIN TestPath::TestPath() + : m_tests() { } TestPath::TestPath( Test *root ) + : m_tests() { add( root ); } @@ -21,6 +23,7 @@ TestPath::TestPath( Test *root ) TestPath::TestPath( const TestPath &other, int indexFirst, int count ) + : m_tests() { int countAdjustment = 0; if ( indexFirst < 0 ) @@ -42,6 +45,7 @@ TestPath::TestPath( const TestPath &other, TestPath::TestPath( Test *searchRoot, const std::string &pathAsString ) + : m_tests() { PathTestNames testNames; -- cgit v1.2.1