summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-03-09 14:29:40 +0100
committerHenry Castro <hcastro@collabora.com>2017-05-02 17:50:36 -0400
commit93860e236a0f1aa42e84078b90629a6140d3c4a1 (patch)
treeed963fe127a4a28f7c2b31586ee037c825871c8d
parent6739f9b2e03ccdc48b202714ec5f8a7e78aee149 (diff)
move assignment onto self should not happen
Change-Id: Ic44f4362762cb1c1fe027b69a78baf768c0a53da
-rw-r--r--sc/source/core/data/postit.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/core/data/postit.cxx b/sc/source/core/data/postit.cxx
index 2111b8ebb4e4..2ae4a75d7750 100644
--- a/sc/source/core/data/postit.cxx
+++ b/sc/source/core/data/postit.cxx
@@ -485,8 +485,7 @@ ScCaptionPtr::ScCaptionPtr( ScCaptionPtr&& r ) :
ScCaptionPtr& ScCaptionPtr::operator=( ScCaptionPtr&& r )
{
- if (this == &r)
- return *this;
+ assert(this != &r);
mpHead = r.mpHead;
mpNext = r.mpNext;