diff options
author | Noel Grandin <noel@peralex.com> | 2013-10-28 12:21:40 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-06 08:51:22 +0200 |
commit | 296329a926877d069f55364a177d734f385ce7ae (patch) | |
tree | d95dff15946339b5a2df8c7c29159b97137ee30e /cui | |
parent | ebeff1814cbecfba9bbeaeba8067b58f71703a39 (diff) |
convert xub_StrLen to sal_Int32
convert for loops using xub_StrLen to use sal_Int32
Change-Id: I5f635ca078966fefe938dbc7e8dea7c8d0d0b554
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/hyphen.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/dialogs/hyphen.cxx b/cui/source/dialogs/hyphen.cxx index ca461304a57b..ed436b6cf0dd 100644 --- a/cui/source/dialogs/hyphen.cxx +++ b/cui/source/dialogs/hyphen.cxx @@ -236,7 +236,7 @@ void SvxHyphenWordDialog::ContinueHyph_Impl( sal_uInt16 nInsPos ) DBG_ASSERT(nInsPos <= aTmp.getLength() - 2, "wrong hyphen position"); sal_Int16 nIdxPos = -1; - for (sal_uInt16 i = 0; i <= nInsPos; ++i) + for (sal_Int32 i = 0; i <= nInsPos; ++i) { if (HYPH_POS_CHAR == aTmp[ i ]) nIdxPos++; @@ -304,7 +304,7 @@ void SvxHyphenWordDialog::SelLeft() if (nOldPos > 0) { OUString aTxt( aEditWord ); - for ( xub_StrLen i = nOldPos - 1; i > 0; --i) + for( sal_Int32 i = nOldPos - 1; i > 0; --i ) { DBG_ASSERT(i <= aTxt.getLength(), "index out of range"); if (aTxt[ i ] == sal_Unicode( HYPH_POS_CHAR )) |