diff options
author | Noel Grandin <noel@peralex.com> | 2013-12-02 15:16:19 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-12-03 11:34:49 +0200 |
commit | fb45457d67514845faec84411cae023e27ea29dd (patch) | |
tree | e9bb46a9dfa718bf6eafd462310583bcb9a9875e /sw | |
parent | 0f196eb228e8e5dbc403b9d9a32f3f5f8c056fc7 (diff) |
xub_StrLen->salInt32 in lcl_Highlight
Change-Id: I0bcb31a37b642482885379fb2b64ed61c584272e
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/docvw/srcedtw.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/ui/docvw/srcedtw.cxx b/sw/source/ui/docvw/srcedtw.cxx index d1b2ee77e0a7..46f1a401c9c8 100644 --- a/sw/source/ui/docvw/srcedtw.cxx +++ b/sw/source/ui/docvw/srcedtw.cxx @@ -97,13 +97,13 @@ static void lcl_Highlight(const OUString& rSource, SwTextPortions& aPortionList) aPortionList.push_back( aText ); nInsert++; } - sal_Unicode cFollowFirst = rSource[(xub_StrLen)(nActPos + 1)]; - sal_Unicode cFollowNext = rSource[(xub_StrLen)(nActPos + 2)]; + sal_Unicode cFollowFirst = rSource[nActPos + 1]; + sal_Unicode cFollowNext = rSource[nActPos + 2]; if(cExclamation == cFollowFirst) { // "<!" SGML or comment if(cMinus == cFollowNext && - nActPos < nStrLen - 3 && cMinus == rSource[(xub_StrLen)(nActPos + 3)]) + nActPos < nStrLen - 3 && cMinus == rSource[nActPos + 3]) { eFoundType = svtools::HTMLCOMMENT; } |