diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2016-11-18 10:32:03 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-21 06:23:05 +0000 |
commit | 202943e49a680b1032bbf45aaa4b0a73dc548867 (patch) | |
tree | d14abc4ee0bf84cd16e27a7acdd4b6030bfcfacc | |
parent | fix for 'warning C4702: unreachable code' (diff) | |
download | core-202943e49a680b1032bbf45aaa4b0a73dc548867.tar.gz core-202943e49a680b1032bbf45aaa4b0a73dc548867.zip |
Remove redundant comparisons
Comparing IndexRegs is included into SwIndex comparison operators
(see sw/inc/index.hxx), so no need to do it also explicitly.
Change-Id: I7e3ea8ab9b8f852cd7e6f0d90afa26e75c734652
Reviewed-on: https://gerrit.libreoffice.org/30951
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | sw/source/core/crsr/pam.cxx | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sw/source/core/crsr/pam.cxx b/sw/source/core/crsr/pam.cxx index a71e910f64ea..d5cf3da666e4 100644 --- a/sw/source/core/crsr/pam.cxx +++ b/sw/source/core/crsr/pam.cxx @@ -160,16 +160,12 @@ bool SwPosition::operator>=(const SwPosition &rPos) const bool SwPosition::operator==(const SwPosition &rPos) const { return (nNode == rPos.nNode) - // GetIndexReg may be null for FLY_AT_PARA frame anchor position - && (nContent.GetIdxReg() == rPos.nContent.GetIdxReg()) && (nContent == rPos.nContent); } bool SwPosition::operator!=(const SwPosition &rPos) const { return (nNode != rPos.nNode) - // GetIndexReg may be null for FLY_AT_PARA frame anchor position - || (nContent.GetIdxReg() != rPos.nContent.GetIdxReg()) || (nContent != rPos.nContent); } |