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

convert xub_StrLen->sal_Int32 in linguistic

Change-Id: Id2e49e43bc149ee639cdbe5b7a1000049fb87978
üst 4ded8177
......@@ -781,7 +781,7 @@ void * SAL_CALL DicList_getFactory( const sal_Char * pImplName,
static sal_Int32 lcl_GetToken( OUString &rToken,
const OUString &rText, xub_StrLen nPos, const OUString &rDelim )
const OUString &rText, sal_Int32 nPos, const OUString &rDelim )
{
sal_Int32 nRes = -1;
......@@ -796,7 +796,7 @@ static sal_Int32 lcl_GetToken( OUString &rToken,
else
{
sal_Int32 i;
for (i = nPos; i < rText.getLength(); ++i)
for (i = nPos; i < rText.getLength(); ++i)
{
if (-1 != rDelim.indexOf( rText[i] ))
break;
......@@ -805,7 +805,7 @@ static sal_Int32 lcl_GetToken( OUString &rToken,
if (i >= rText.getLength()) // delimeter not found
rToken = rText.copy( nPos );
else
rToken = rText.copy( nPos, (sal_Int32) i - nPos );
rToken = rText.copy( nPos, i - nPos );
nRes = i + 1; // continue after found delimeter
}
......
......@@ -129,11 +129,11 @@ Reference<XHyphenatedWord> HyphenatorDispatcher::buildHyphWord(
aShorter = rOrigWord;
aLonger = aText;
}
xub_StrLen nS = sal::static_int_cast< xub_StrLen >( aShorter.getLength() );
xub_StrLen nL = sal::static_int_cast< xub_StrLen >( aLonger.getLength() );
sal_Int32 nS = aShorter.getLength();
sal_Int32 nL = aLonger.getLength();
if (nS > 0 && nL > 0)
{
DBG_ASSERT( (nS + 1 == nL) && aLonger[nL-1] == (sal_Unicode) '.',
DBG_ASSERT( (nS + 1 == nL) && aLonger[nL-1] == '.',
"HyphenatorDispatcher::buildHyphWord: unexpected difference between words!" );
}
}
......
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