diff options
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/dlistimp.cxx | 6 | ||||
-rw-r--r-- | linguistic/source/hyphdsp.cxx | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/linguistic/source/dlistimp.cxx b/linguistic/source/dlistimp.cxx index 79e2e86515d6..8eb9102085ea 100644 --- a/linguistic/source/dlistimp.cxx +++ b/linguistic/source/dlistimp.cxx @@ -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 } diff --git a/linguistic/source/hyphdsp.cxx b/linguistic/source/hyphdsp.cxx index b7a95e773b5e..0fe658c088b0 100644 --- a/linguistic/source/hyphdsp.cxx +++ b/linguistic/source/hyphdsp.cxx @@ -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!" ); } } |