summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-10-28 15:41:25 +0200
committerNoel Grandin <noel@peralex.com>2013-11-05 15:15:30 +0200
commita6dc113734385cbf37db7ff1804f5276530f78f7 (patch)
tree91c47dca48541fa297d7a525ab0457302f7a74ed /linguistic
parentbb60c5a877057918b59de08207e83aa284d281cc (diff)
convert xub_StrLen to sal_Int32
Convert code like: xub_StrLen nLen = aStr.getLength(); into sal_Int32 nLen = aStr.getLength(); Change-Id: Ib0af6b747068257478918fd1cc93e4925f32ac47
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/misc.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/linguistic/source/misc.cxx b/linguistic/source/misc.cxx
index d979d531969e..a590af82e484 100644
--- a/linguistic/source/misc.cxx
+++ b/linguistic/source/misc.cxx
@@ -706,12 +706,11 @@ sal_Bool IsNumeric( const OUString &rText )
sal_Bool bRes = sal_False;
if (!rText.isEmpty())
{
- xub_StrLen nLen = rText.getLength();
+ sal_Int32 nLen = rText.getLength();
bRes = sal_True;
- xub_StrLen i = 0;
- while (i < nLen)
+ for(sal_Int32 i = 0; i < nLen; ++i)
{
- sal_Unicode cChar = rText[ i++ ];
+ sal_Unicode cChar = rText[ i ];
if ( !((sal_Unicode)'0' <= cChar && cChar <= (sal_Unicode)'9') )
{
bRes = sal_False;