summaryrefslogtreecommitdiff
path: root/drawinglayer/source/attribute/sdrsceneattribute3d.cxx
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2018-01-28 20:18:12 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-01-29 07:32:42 +0100
commit8010abe4ab300f966b878b64ccc8733e3ea3cbc4 (patch)
treecba3b818a0c0d35eff21280903532b177f759f03 /drawinglayer/source/attribute/sdrsceneattribute3d.cxx
parent9eece764a75020623f9723b61fff75faa446b098 (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.cxx26
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
{