diff options
author | Martin Liška <mliska@suse.cz> | 2019-04-30 10:44:44 +0200 |
---|---|---|
committer | Tomáš Chvátal <tchvatal@suse.cz> | 2019-04-30 13:39:18 +0200 |
commit | 78e64f0edb4f3271a6ddbcdf9cba05138597bfca (patch) | |
tree | eb5a215547b83ae4813aa7bc827f6e1adbc04e03 | |
parent | 339b60ab77ce3f2037c9410eb14251c8132df08a (diff) | |
download | cppunit-78e64f0edb4f3271a6ddbcdf9cba05138597bfca.tar.gz |
Fix build with gcc9.1
Change-Id: I8a0d7a0b51b5c537dbcfa8fdd34e816605b1f32e
Reviewed-on: https://gerrit.libreoffice.org/71573
Reviewed-by: Tomáš Chvátal <tchvatal@suse.cz>
Tested-by: Tomáš Chvátal <tchvatal@suse.cz>
-rw-r--r-- | examples/cppunittest/OrthodoxTest.h | 6 |
1 files changed, 6 insertions, 0 deletions
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; }; |