diff options
Diffstat (limited to 'main/cppunit/fix-Werror-deprecated-copy.patch')
-rw-r--r-- | main/cppunit/fix-Werror-deprecated-copy.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/main/cppunit/fix-Werror-deprecated-copy.patch b/main/cppunit/fix-Werror-deprecated-copy.patch new file mode 100644 index 0000000000..6866e93aeb --- /dev/null +++ b/main/cppunit/fix-Werror-deprecated-copy.patch @@ -0,0 +1,30 @@ +diff --git a/examples/cppunittest/OrthodoxTest.h b/examples/cppunittest/OrthodoxTest.h +index 8fc2a08..a2bc678 100644 +--- a/examples/cppunittest/OrthodoxTest.h ++++ b/examples/cppunittest/OrthodoxTest.h +@@ -38,6 +38,8 @@ private: + public: + Value( int value =0 ) : m_value( value ) {} + ++ Value( const Value & ) = default; ++ + Value& operator= ( const Value& v ) + { + m_value = v.m_value; +@@ -143,6 +145,8 @@ private: + { + return ValueBadCall( -1 - m_value ); + } ++ ++ ValueBadCall &operator =( const ValueBadCall & ) = default; + }; + + +@@ -161,6 +165,8 @@ private: + ++m_value; + return *this; + } ++ ++ ValueBadAssignment( const ValueBadAssignment & ) = default; + }; + |