diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-05 14:11:50 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-05 14:11:50 +0100 |
commit | 10a5e136486f861d6c8f7fef740b42dff2de69d4 (patch) | |
tree | ef54844cefa84b3e27cde80f286f5be108f4506b /rsc/inc | |
parent | b8ca219893a6e14bfea3cec5522532c144ad2fa6 (diff) |
Explicitly default the copy ctor
(better than making it implicitly declared, as defining it defaulted is
deprecated for that case because of the user-declared copy assignment op)
Change-Id: I0c2c4c063e19e3a15b06e75d0c080911acf26ca3
Diffstat (limited to 'rsc/inc')
-rw-r--r-- | rsc/inc/rscerror.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rsc/inc/rscerror.h b/rsc/inc/rscerror.h index 754e71e60b01..a3e00137c3b7 100644 --- a/rsc/inc/rscerror.h +++ b/rsc/inc/rscerror.h @@ -91,7 +91,7 @@ class ERRTYPE public: ERRTYPE() { nError = ERR_OK; } ERRTYPE( sal_uInt32 nErr ) { nError = nErr; } - ERRTYPE( const ERRTYPE & rErr ) { nError = rErr.nError; } + ERRTYPE( const ERRTYPE & ) = default; ERRTYPE& operator = ( const ERRTYPE & rError ); operator sal_uInt32() const { return nError; } bool IsError() const { return nError <= ERR_ERROREND; } |