[Libreoffice-commits] core.git: chart2/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Jul 26 15:33:18 UTC 2018


 chart2/source/inc/ObjectIdentifier.hxx   |    1 -
 chart2/source/tools/ObjectIdentifier.cxx |    6 ------
 2 files changed, 7 deletions(-)

New commits:
commit 4c702afe205a778b73b50cd95bc4f28b98baca44
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Jul 26 12:02:33 2018 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Thu Jul 26 17:32:53 2018 +0200

    chart2: avoid -Werror=deprecated-copy (GCC trunk towards GCC 9)
    
    ...by removing explicitly user-provided functions that do the same as their
    implicitly-defined counterparts, but may prevent implicitly declared copy
    functions from being defined as non-deleted in the future.  (Even if such a
    user-provided function was declared non-inline in an include file, the
    apparently-used implicitly-defined copy functions are already inline, so why
    bother with non-inline functions.)
    
    Change-Id: If96d3b6ca79416127933e7f22e3628361604efe1
    Reviewed-on: https://gerrit.libreoffice.org/58069
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/chart2/source/inc/ObjectIdentifier.hxx b/chart2/source/inc/ObjectIdentifier.hxx
index e2b81c617a15..8cb3c3c4ad37 100644
--- a/chart2/source/inc/ObjectIdentifier.hxx
+++ b/chart2/source/inc/ObjectIdentifier.hxx
@@ -92,7 +92,6 @@ public:
     ObjectIdentifier( const css::uno::Reference< css::drawing::XShape >& rxShape );
     ObjectIdentifier( const css::uno::Any& rAny );
 
-    ObjectIdentifier( const ObjectIdentifier& rOID );
     bool operator==( const ObjectIdentifier& rOID ) const;
     bool operator!=( const ObjectIdentifier& rOID ) const;
     bool operator<( const ObjectIdentifier& rOID ) const;
diff --git a/chart2/source/tools/ObjectIdentifier.cxx b/chart2/source/tools/ObjectIdentifier.cxx
index fbfcb6954462..b4c9840f5848 100644
--- a/chart2/source/tools/ObjectIdentifier.cxx
+++ b/chart2/source/tools/ObjectIdentifier.cxx
@@ -271,12 +271,6 @@ ObjectIdentifier::ObjectIdentifier( const Any& rAny )
     }
 }
 
-ObjectIdentifier::ObjectIdentifier( const ObjectIdentifier& rOID )
-    :m_aObjectCID( rOID.m_aObjectCID )
-    ,m_xAdditionalShape( rOID.m_xAdditionalShape )
-{
-}
-
 bool ObjectIdentifier::operator==( const ObjectIdentifier& rOID ) const
 {
     return areIdenticalObjects( m_aObjectCID, rOID.m_aObjectCID ) &&


More information about the Libreoffice-commits mailing list