summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-29 11:49:17 +0200
committerNoel Grandin <noel@peralex.com>2013-12-03 11:34:45 +0200
commit9dae1c5b83878e6ef939bed7cac237f33bc25d64 (patch)
treeb63637623b0dd1da6a34c7109ae3a1f182bb3d9e /linguistic
parent4ded81770296b6eec9291924db53666f1d8e8d7e (diff)
convert xub_StrLen->sal_Int32 in linguistic
Change-Id: Id2e49e43bc149ee639cdbe5b7a1000049fb87978
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/dlistimp.cxx6
-rw-r--r--linguistic/source/hyphdsp.cxx6
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!" );
}
}