[Libreoffice-commits] cppunit.git: examples/cppunittest
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Apr 30 11:39:36 UTC 2019
examples/cppunittest/OrthodoxTest.h | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 78e64f0edb4f3271a6ddbcdf9cba05138597bfca
Author: Martin Liška <mliska at suse.cz>
AuthorDate: Tue Apr 30 10:44:44 2019 +0200
Commit: Tomáš Chvátal <tchvatal at suse.cz>
CommitDate: Tue Apr 30 13:39:18 2019 +0200
Fix build with gcc9.1
Change-Id: I8a0d7a0b51b5c537dbcfa8fdd34e816605b1f32e
Reviewed-on: https://gerrit.libreoffice.org/71573
Reviewed-by: Tomáš Chvátal <tchvatal at suse.cz>
Tested-by: Tomáš Chvátal <tchvatal at suse.cz>
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;
};
More information about the Libreoffice-commits
mailing list