diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-12-12 11:27:49 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-12-12 13:33:14 +0100 |
commit | 1336a02a736b7927814701df84fa4671e8c4bcb2 (patch) | |
tree | 4806891d7d4bd8412f930b2ca8171ab737008325 | |
parent | 2bf22c8d2642e30fdedab69b7437ae83deaec014 (diff) |
Silence some Clang 10 trunk -Wdeprecated-copy-dtor
...by explicitly defaulting the copy/move functions in cases where the user-
provided dtor is trivial (so could theoretically be replaced with an implicit
one, cf. <https://gerrit.libreoffice.org/#/c/85032/> "Remove some redundant
user-provided dtors") but is probably defined out-of-class because the class is
DLLPUBLIC
Change-Id: Iff5e86654b10c7a03333c06312dc5dfce925d947
Reviewed-on: https://gerrit.libreoffice.org/85041
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r-- | include/drawinglayer/primitive2d/borderlineprimitive2d.hxx | 5 | ||||
-rw-r--r-- | sc/inc/dpdimsave.hxx | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/include/drawinglayer/primitive2d/borderlineprimitive2d.hxx b/include/drawinglayer/primitive2d/borderlineprimitive2d.hxx index 1e0b1e2215f5..d3be9c8d4068 100644 --- a/include/drawinglayer/primitive2d/borderlineprimitive2d.hxx +++ b/include/drawinglayer/primitive2d/borderlineprimitive2d.hxx @@ -68,6 +68,11 @@ namespace drawinglayer ~BorderLine(); + BorderLine(BorderLine const &) = default; + BorderLine(BorderLine &&) = default; + BorderLine & operator =(BorderLine const &) = default; + BorderLine & operator =(BorderLine &&) = default; + const drawinglayer::attribute::LineAttribute& getLineAttribute() const { return maLineAttribute; } double getStartLeft() const { return mfStartLeft; } double getStartRight() const { return mfStartRight; } diff --git a/sc/inc/dpdimsave.hxx b/sc/inc/dpdimsave.hxx index c49f2d33f969..124239cc1bd4 100644 --- a/sc/inc/dpdimsave.hxx +++ b/sc/inc/dpdimsave.hxx @@ -50,6 +50,11 @@ public: ScDPSaveGroupItem( const OUString& rName ); ~ScDPSaveGroupItem(); + ScDPSaveGroupItem(ScDPSaveGroupItem const &) = default; + ScDPSaveGroupItem(ScDPSaveGroupItem &&) = default; + ScDPSaveGroupItem & operator =(ScDPSaveGroupItem const &) = default; + ScDPSaveGroupItem & operator =(ScDPSaveGroupItem &&) = default; + void AddToData(ScDPGroupDimension& rDataDim) const; void AddElement( const OUString& rName ); |