Kaydet (Commit) 10a5e136 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

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
üst b8ca2198
...@@ -91,7 +91,7 @@ class ERRTYPE ...@@ -91,7 +91,7 @@ class ERRTYPE
public: public:
ERRTYPE() { nError = ERR_OK; } ERRTYPE() { nError = ERR_OK; }
ERRTYPE( sal_uInt32 nErr ) { nError = nErr; } ERRTYPE( sal_uInt32 nErr ) { nError = nErr; }
ERRTYPE( const ERRTYPE & rErr ) { nError = rErr.nError; } ERRTYPE( const ERRTYPE & ) = default;
ERRTYPE& operator = ( const ERRTYPE & rError ); ERRTYPE& operator = ( const ERRTYPE & rError );
operator sal_uInt32() const { return nError; } operator sal_uInt32() const { return nError; }
bool IsError() const { return nError <= ERR_ERROREND; } bool IsError() const { return nError <= ERR_ERROREND; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment