summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-07-26 12:02:33 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-07-26 17:32:53 +0200
commit4c702afe205a778b73b50cd95bc4f28b98baca44 (patch)
tree02a3803410b2fbf9cadde2f95b96312986df7520 /chart2
parent9ba1acca680e80a816666d67b9429284840b7121 (diff)
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@redhat.com>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/inc/ObjectIdentifier.hxx1
-rw-r--r--chart2/source/tools/ObjectIdentifier.cxx6
2 files changed, 0 insertions, 7 deletions
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 ) &&