[Libreoffice-commits] core.git: rsc/inc

Stephan Bergmann sbergman at redhat.com
Thu Mar 5 05:12:25 PST 2015


 rsc/inc/rscerror.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 10a5e136486f861d6c8f7fef740b42dff2de69d4
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Mar 5 14:11:50 2015 +0100

    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

diff --git a/rsc/inc/rscerror.h b/rsc/inc/rscerror.h
index 754e71e..a3e0013 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; }


More information about the Libreoffice-commits mailing list