summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-11-11 16:45:22 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-11-11 17:03:11 +0000
commit8909cbeb315e257fbe06dad6caee5db18879b916 (patch)
tree12ab7f40efce0f0529bbc93e9390093e6114eca1 /connectivity
parent5abd8d2eeeaecfcd18e2c61fe6d5a674a1826b69 (diff)
coverity#1371239 Missing move assignment operator
Change-Id: Ie5cddac8b4b0c8eefee82a14c845982600df0455
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/inc/file/fcode.hxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/connectivity/source/inc/file/fcode.hxx b/connectivity/source/inc/file/fcode.hxx
index c3465695fdb1..e18bebfb36ad 100644
--- a/connectivity/source/inc/file/fcode.hxx
+++ b/connectivity/source/inc/file/fcode.hxx
@@ -44,7 +44,16 @@ namespace connectivity
class OOO_DLLPUBLIC_FILE OCode
{
public:
+ //virtual dtor to allow this to be the root of the class hierarchy
virtual ~OCode() = default;
+ //but that disables the default move ctor
+ OCode(OCode&&) = default;
+ //but that disables the rest of default ctors
+ OCode(const OCode&) = default;
+ OCode() = default;
+ //and same issue for the assignment operators
+ OCode& operator=(const OCode&) = default;
+ OCode& operator=(OCode&&) = default;
inline static void * SAL_CALL operator new( size_t nSize )
{ return ::rtl_allocateMemory( nSize ); }