diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-04-16 09:14:39 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-04-16 10:37:00 +0200 |
commit | 22c775b05b37a89e8d64e36d1ec2fb5dfbfa5259 (patch) | |
tree | c98301c3fc75cb9fbfcfce52e4dd5199dc30050e /sw | |
parent | e81a35e1a86b6492a68f52ae53c41ee624981ee8 (diff) |
cppcheck: arrayIndexThenCheck
Change-Id: Ie3ca646fae94ff5a06a29fc2823a1cacafc3deb1
Reviewed-on: https://gerrit.libreoffice.org/36575
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/access/accpara.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/access/accpara.cxx b/sw/source/core/access/accpara.cxx index 722e2bb6a6fb..2c3fe1c8ffb6 100644 --- a/sw/source/core/access/accpara.cxx +++ b/sw/source/core/access/accpara.cxx @@ -785,7 +785,7 @@ bool SwAccessibleParagraph::GetSentenceBoundary( const sal_Unicode* pStr = rText.getStr(); if (pStr) { - while( pStr[nPos] == sal_Unicode(' ') && nPos < rText.getLength()) + while( nPos < rText.getLength() && pStr[nPos] == sal_Unicode(' ') ) nPos++; } |