summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-12-12 11:27:49 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-12-12 13:33:14 +0100
commit1336a02a736b7927814701df84fa4671e8c4bcb2 (patch)
tree4806891d7d4bd8412f930b2ca8171ab737008325 /include
parent2bf22c8d2642e30fdedab69b7437ae83deaec014 (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>
Diffstat (limited to 'include')
-rw-r--r--include/drawinglayer/primitive2d/borderlineprimitive2d.hxx5
1 files changed, 5 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; }