summaryrefslogtreecommitdiffstats
path: root/sd/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-09-25 20:55:52 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-09-25 20:55:52 +0100
commitc606f4bfa49b930ab50b98eacbfae9d6d73a180d (patch)
tree2d8c413bfa1d94d5f43b0446a88658588544506f /sd/source
parentimpl this with a std::unique_ptr (diff)
downloadcore-c606f4bfa49b930ab50b98eacbfae9d6d73a180d.tar.gz
core-c606f4bfa49b930ab50b98eacbfae9d6d73a180d.zip
coverity#1371240 Missing move assignment operator
Change-Id: Icf7a55fb7c37b5642913b010a54a7690c0593474
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/view/OutlinerIterator.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/sd/source/ui/view/OutlinerIterator.cxx b/sd/source/ui/view/OutlinerIterator.cxx
index 4fd8df0e85ce..33a615ef35cd 100644
--- a/sd/source/ui/view/OutlinerIterator.cxx
+++ b/sd/source/ui/view/OutlinerIterator.cxx
@@ -73,6 +73,11 @@ Iterator::Iterator (const Iterator& rIterator)
{
}
+Iterator::Iterator (Iterator&& rIterator)
+ : mxIterator(std::move(rIterator.mxIterator))
+{
+}
+
Iterator::Iterator (IteratorImplBase* pObject)
: mxIterator(pObject)
{
@@ -94,6 +99,12 @@ Iterator& Iterator::operator= (const Iterator& rIterator)
return *this;
}
+Iterator& Iterator::operator= (Iterator&& rIterator)
+{
+ mxIterator = std::move(rIterator.mxIterator);
+ return *this;
+}
+
const IteratorPosition& Iterator::operator* () const
{
DBG_ASSERT (mxIterator, "::sd::outliner::Iterator::operator* : missing implementation object");