Kaydet (Commit) fb45457d authored tarafından Noel Grandin's avatar Noel Grandin

xub_StrLen->salInt32 in lcl_Highlight

Change-Id: I0bcb31a37b642482885379fb2b64ed61c584272e
üst 0f196eb2
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment