diff options
author | Eike Rathke <erack@redhat.com> | 2017-03-09 14:29:40 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-03-09 22:10:22 +0100 |
commit | 5f376561549552a22e9a2b8f07ec5f3378b99e73 (patch) | |
tree | 9d513c4f2bc1febacce592fac4932ea33aebe7b3 | |
parent | e897f9d74d0210c500fda918e891f3b3499518c7 (diff) |
move assignment onto self should not happen
Change-Id: Ic44f4362762cb1c1fe027b69a78baf768c0a53da
-rw-r--r-- | sc/source/core/data/postit.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/core/data/postit.cxx b/sc/source/core/data/postit.cxx index 0e840e7f638d..dee726ce802a 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; |