summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2017-12-27 13:16:22 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-12-27 17:07:41 +0100
commitab5d6166beca20503cd57b8707b814305f92267a (patch)
tree9ccbe98b9a3e4cea79244e6a97d93e320e5d71eb
parent363cb299ddda76504f49e3445e6609fe3a4c8111 (diff)
delete operators properly
Change-Id: Ia917b70712717387aa8d7a17334efd41931bdb88 Reviewed-on: https://gerrit.libreoffice.org/47087 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--sd/inc/OutlinerIterator.hxx2
-rw-r--r--sd/source/ui/inc/OutlinerIteratorImpl.hxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/sd/inc/OutlinerIterator.hxx b/sd/inc/OutlinerIterator.hxx
index 0696fbffc265..8271916d8b0a 100644
--- a/sd/inc/OutlinerIterator.hxx
+++ b/sd/inc/OutlinerIterator.hxx
@@ -274,7 +274,7 @@ private:
// Do not allow default constructor and copying of outliner containers.
OutlinerContainer (const OutlinerContainer&) = delete;
- OutlinerContainer& operator= (const OutlinerContainer&) {return *this;};
+ OutlinerContainer& operator= (const OutlinerContainer&) = delete;
};
/** Data collection specifying a <type>SdrObject</type> and its position in
diff --git a/sd/source/ui/inc/OutlinerIteratorImpl.hxx b/sd/source/ui/inc/OutlinerIteratorImpl.hxx
index e09950899f1b..82d9432e79db 100644
--- a/sd/source/ui/inc/OutlinerIteratorImpl.hxx
+++ b/sd/source/ui/inc/OutlinerIteratorImpl.hxx
@@ -206,7 +206,7 @@ private:
SdrObjListIter* mpObjectIterator;
// Don't use this operator.
- ViewIteratorImpl& operator= (const ViewIteratorImpl&){return *this;};
+ ViewIteratorImpl& operator= (const ViewIteratorImpl&) = delete;
};
/** Iterator for iteration over all objects in all views. It automatically
@@ -235,7 +235,7 @@ private:
sal_Int32 mnPageCount;
// Don't use this operator.
- DocumentIteratorImpl& operator= (const DocumentIteratorImpl& ){return *this;};
+ DocumentIteratorImpl& operator= (const DocumentIteratorImpl& ) = delete;
};
} } // end of namespace ::sd::outliner