diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2018-01-28 20:18:12 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-29 07:32:42 +0100 |
commit | 8010abe4ab300f966b878b64ccc8733e3ea3cbc4 (patch) | |
tree | cba3b818a0c0d35eff21280903532b177f759f03 /drawinglayer/source/attribute/sdrsceneattribute3d.cxx | |
parent | 9eece764a75020623f9723b61fff75faa446b098 (diff) |
clang-tidy modernize-use-equals-default in drawinglayer
Change-Id: I2fbcac7a22a881681bc8b84274e7d39f1cec18bf
Reviewed-on: https://gerrit.libreoffice.org/48800
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'drawinglayer/source/attribute/sdrsceneattribute3d.cxx')
-rw-r--r-- | drawinglayer/source/attribute/sdrsceneattribute3d.cxx | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/drawinglayer/source/attribute/sdrsceneattribute3d.cxx b/drawinglayer/source/attribute/sdrsceneattribute3d.cxx index f08b088decb9..494edcb525b6 100644 --- a/drawinglayer/source/attribute/sdrsceneattribute3d.cxx +++ b/drawinglayer/source/attribute/sdrsceneattribute3d.cxx @@ -98,36 +98,20 @@ namespace drawinglayer { } - SdrSceneAttribute::SdrSceneAttribute(const SdrSceneAttribute& rCandidate) - : mpSdrSceneAttribute(rCandidate.mpSdrSceneAttribute) - { - } + SdrSceneAttribute::SdrSceneAttribute(const SdrSceneAttribute&) = default; - SdrSceneAttribute::SdrSceneAttribute(SdrSceneAttribute&& rCandidate) - : mpSdrSceneAttribute(std::move(rCandidate.mpSdrSceneAttribute)) - { - } + SdrSceneAttribute::SdrSceneAttribute(SdrSceneAttribute&&) = default; - SdrSceneAttribute::~SdrSceneAttribute() - { - } + SdrSceneAttribute::~SdrSceneAttribute() = default; bool SdrSceneAttribute::isDefault() const { return mpSdrSceneAttribute.same_object(theGlobalDefault::get()); } - SdrSceneAttribute& SdrSceneAttribute::operator=(const SdrSceneAttribute& rCandidate) - { - mpSdrSceneAttribute = rCandidate.mpSdrSceneAttribute; - return *this; - } + SdrSceneAttribute& SdrSceneAttribute::operator=(const SdrSceneAttribute&) = default; - SdrSceneAttribute& SdrSceneAttribute::operator=(SdrSceneAttribute&& rCandidate) - { - mpSdrSceneAttribute = std::move(rCandidate.mpSdrSceneAttribute); - return *this; - } + SdrSceneAttribute& SdrSceneAttribute::operator=(SdrSceneAttribute&&) = default; bool SdrSceneAttribute::operator==(const SdrSceneAttribute& rCandidate) const { |