From c233b1b63750a995fcc0547459fae4cf3ec9e735 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 4 Sep 2016 15:34:30 +0100 Subject: coverity#1371177 default assign is good enough and coverity#1371311 coverity#1371240 Change-Id: I1f792b9a8e3e386633d4026d8b073ab615d243f3 --- sd/inc/OutlinerIterator.hxx | 10 ---------- sd/source/ui/view/OutlinerIterator.cxx | 14 -------------- 2 files changed, 24 deletions(-) (limited to 'sd') diff --git a/sd/inc/OutlinerIterator.hxx b/sd/inc/OutlinerIterator.hxx index d5a4392dbcea..c4a1308dca43 100644 --- a/sd/inc/OutlinerIterator.hxx +++ b/sd/inc/OutlinerIterator.hxx @@ -303,16 +303,6 @@ public: */ IteratorPosition (const IteratorPosition& aPosition); - /// The destructor is a no-op at the moment. - ~IteratorPosition(); - /** Assign the content of the given position to this one. - @param aPosition - This is the position object from which to take the values of all - data members. - @return - Returns a reference to this object. - */ - IteratorPosition& operator= (const IteratorPosition& aPosition); /** Compare two positions for equality. @return is returned only when all data members have the same diff --git a/sd/source/ui/view/OutlinerIterator.cxx b/sd/source/ui/view/OutlinerIterator.cxx index 1eb3351f8a4d..36cdb32310f1 100644 --- a/sd/source/ui/view/OutlinerIterator.cxx +++ b/sd/source/ui/view/OutlinerIterator.cxx @@ -53,20 +53,6 @@ IteratorPosition::IteratorPosition (const IteratorPosition& aPosition) { } -IteratorPosition::~IteratorPosition() -{ -} - -IteratorPosition& IteratorPosition::operator= (const IteratorPosition& aPosition) -{ - mxObject = aPosition.mxObject; - mnText = aPosition.mnText; - mnPageIndex = aPosition.mnPageIndex; - mePageKind = aPosition.mePageKind; - meEditMode = aPosition.meEditMode; - return *this; -} - bool IteratorPosition::operator== (const IteratorPosition& aPosition) const { return mxObject.get() == aPosition.mxObject.get() -- cgit v1.2.3