diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-09-25 20:55:52 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-09-25 20:55:52 +0100 |
commit | c606f4bfa49b930ab50b98eacbfae9d6d73a180d (patch) | |
tree | 2d8c413bfa1d94d5f43b0446a88658588544506f /sd/source | |
parent | impl this with a std::unique_ptr (diff) | |
download | core-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.cxx | 11 |
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"); |