diff options
author | Noel Grandin <noel@peralex.com> | 2013-10-28 15:41:25 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-05 15:15:30 +0200 |
commit | a6dc113734385cbf37db7ff1804f5276530f78f7 (patch) | |
tree | 91c47dca48541fa297d7a525ab0457302f7a74ed /cui | |
parent | bb60c5a877057918b59de08207e83aa284d281cc (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 'cui')
-rw-r--r-- | cui/source/dialogs/hyphen.cxx | 9 | ||||
-rw-r--r-- | cui/source/dialogs/postdlg.cxx | 2 |
2 files changed, 5 insertions, 6 deletions
diff --git a/cui/source/dialogs/hyphen.cxx b/cui/source/dialogs/hyphen.cxx index fffb3fcfd8ca..ca461304a57b 100644 --- a/cui/source/dialogs/hyphen.cxx +++ b/cui/source/dialogs/hyphen.cxx @@ -76,11 +76,10 @@ void HyphenEdit::KeyInput( const KeyEvent& rKEvt ) void SvxHyphenWordDialog::EnableLRBtn_Impl() { OUString aTxt( aEditWord ); - xub_StrLen nLen = aTxt.getLength(); - xub_StrLen i; + sal_Int32 nLen = aTxt.getLength(); m_pRightBtn->Disable(); - for ( i = nOldPos + 2; i < nLen; ++i ) + for ( sal_Int32 i = nOldPos + 2; i < nLen; ++i ) { if ( aTxt[ i ] == sal_Unicode( HYPH_POS_CHAR ) ) { @@ -93,7 +92,7 @@ void SvxHyphenWordDialog::EnableLRBtn_Impl() if (nOldPos >= aTxt.getLength()) nOldPos = aTxt.getLength() - 1; m_pLeftBtn->Disable(); - for ( i = nOldPos; i-- > 0; ) + for ( sal_Int32 i = nOldPos; i-- > 0; ) { if ( aTxt[ i ] == sal_Unicode( HYPH_POS_CHAR ) ) { @@ -328,7 +327,7 @@ void SvxHyphenWordDialog::SelLeft() void SvxHyphenWordDialog::SelRight() { OUString aTxt( aEditWord ); - for ( xub_StrLen i = nOldPos + 1; i < aTxt.getLength(); ++i ) + for ( sal_Int32 i = nOldPos + 1; i < aTxt.getLength(); ++i ) { if (aTxt[ i ] == sal_Unicode( HYPH_POS_CHAR )) { diff --git a/cui/source/dialogs/postdlg.cxx b/cui/source/dialogs/postdlg.cxx index 9f3ea3e06f75..adc1a5dbd9af 100644 --- a/cui/source/dialogs/postdlg.cxx +++ b/cui/source/dialogs/postdlg.cxx @@ -201,7 +201,7 @@ IMPL_LINK_NOARG(SvxPostItDialog, Stamp) aStr = convertLineEnd(aStr, GetSystemLineEnd()); m_pEditED->SetText(aStr); - xub_StrLen nLen = aStr.getLength(); + sal_Int32 nLen = aStr.getLength(); m_pEditED->GrabFocus(); m_pEditED->SetSelection( Selection( nLen, nLen ) ); return 0; |