summaryrefslogtreecommitdiff
path: root/drawinglayer
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-25 12:29:44 +0200
committerNoel Grandin <noel@peralex.com>2016-08-25 12:30:35 +0200
commit37ffcb1ce74d08ccbca1545714bbf81669cd3d03 (patch)
tree8de440bce687a50b1481e0637e269e97cfcb4daa /drawinglayer
parentd27b9f0f95367be3e9b4047bfa0648337241f7fa (diff)
fix windows build, doesn't like default move methods
Change-Id: I6e756a11aa07722ff18ed13219b780f3db3bc4a0
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/attribute/sdrlineattribute.cxx11
-rw-r--r--drawinglayer/source/attribute/strokeattribute.cxx11
2 files changed, 18 insertions, 4 deletions
diff --git a/drawinglayer/source/attribute/sdrlineattribute.cxx b/drawinglayer/source/attribute/sdrlineattribute.cxx
index 21da3a249aed..1da16445188b 100644
--- a/drawinglayer/source/attribute/sdrlineattribute.cxx
+++ b/drawinglayer/source/attribute/sdrlineattribute.cxx
@@ -124,7 +124,10 @@ namespace drawinglayer
{
}
- SdrLineAttribute::SdrLineAttribute(SdrLineAttribute&& rCandidate) = default;
+ SdrLineAttribute::SdrLineAttribute(SdrLineAttribute&& rCandidate)
+ : mpSdrLineAttribute(std::move(rCandidate.mpSdrLineAttribute))
+ {
+ }
SdrLineAttribute::~SdrLineAttribute()
{
@@ -141,7 +144,11 @@ namespace drawinglayer
return *this;
}
- SdrLineAttribute& SdrLineAttribute::operator=(SdrLineAttribute&& rCandidate) = default;
+ SdrLineAttribute& SdrLineAttribute::operator=(SdrLineAttribute&& rCandidate)
+ {
+ mpSdrLineAttribute = std::move(rCandidate.mpSdrLineAttribute);
+ return *this;
+ }
bool SdrLineAttribute::operator==(const SdrLineAttribute& rCandidate) const
{
diff --git a/drawinglayer/source/attribute/strokeattribute.cxx b/drawinglayer/source/attribute/strokeattribute.cxx
index 7c152c8479de..05e9ba509e26 100644
--- a/drawinglayer/source/attribute/strokeattribute.cxx
+++ b/drawinglayer/source/attribute/strokeattribute.cxx
@@ -92,7 +92,10 @@ namespace drawinglayer
{
}
- StrokeAttribute::StrokeAttribute(StrokeAttribute&& rCandidate) = default;
+ StrokeAttribute::StrokeAttribute(StrokeAttribute&& rCandidate)
+ : mpStrokeAttribute(std::move(rCandidate.mpStrokeAttribute))
+ {
+ }
StrokeAttribute::~StrokeAttribute()
{
@@ -109,7 +112,11 @@ namespace drawinglayer
return *this;
}
- StrokeAttribute& StrokeAttribute::operator=(StrokeAttribute&& rCandidate) = default;
+ StrokeAttribute& StrokeAttribute::operator=(StrokeAttribute&& rCandidate)
+ {
+ mpStrokeAttribute = std::move(rCandidate.mpStrokeAttribute);
+ return *this;
+ }
bool StrokeAttribute::operator==(const StrokeAttribute& rCandidate) const
{