diff options
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; |