Kaydet (Commit) 5b6dcac8 authored tarafından Caolán McNamara's avatar Caolán McNamara

comparision of STRING_NOTFOUND to OUString::indexOf

Change-Id: I5ad12b594143a3e9ab2399836d30e48deb656639
üst 9bb1b4c5
...@@ -653,8 +653,8 @@ sal_Bool SvxAutoCorrect::FnAddNonBrkSpace( ...@@ -653,8 +653,8 @@ sal_Bool SvxAutoCorrect::FnAddNonBrkSpace(
} }
// Check the presence of "://" in the word // Check the presence of "://" in the word
xub_StrLen nStrPos = rTxt.indexOf( "://", nSttWdPos + 1 ); sal_Int32 nStrPos = rTxt.indexOf( "://", nSttWdPos + 1 );
if ( STRING_NOTFOUND == nStrPos && nEndPos > 0 ) if ( nStrPos == -1 && nEndPos > 0 )
{ {
// Check the previous char // Check the previous char
sal_Unicode cPrevChar = rTxt[ nEndPos - 1 ]; sal_Unicode cPrevChar = rTxt[ nEndPos - 1 ];
......
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