From 10a5e136486f861d6c8f7fef740b42dff2de69d4 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 5 Mar 2015 14:11:50 +0100 Subject: 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 --- rsc/inc/rscerror.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rsc/inc') 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; } -- cgit