summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2014-07-25 13:24:40 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2014-07-26 14:25:31 +0200
commitd940c1226268a881c3fa4580cc41ac3082298218 (patch)
treeada2dfa5c7a0f5804d9c70b171cfd0b966976520 /sw
parent485d29d0716213a20198bbf2a5e5084505ea6c79 (diff)
sal_uInt16 to sal_Int32, reduce scope
Change-Id: Ia3c722ab7c73dd10576142189d5bc256841b8c67
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/smartmenu/stmenu.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/sw/source/uibase/smartmenu/stmenu.cxx b/sw/source/uibase/smartmenu/stmenu.cxx
index d1611c8f408b..064ff2488020 100644
--- a/sw/source/uibase/smartmenu/stmenu.cxx
+++ b/sw/source/uibase/smartmenu/stmenu.cxx
@@ -43,7 +43,6 @@ SwSmartTagPopup::SwSmartTagPopup( SwView* pSwView,
const lang::Locale aLocale( SW_BREAKITER()->GetLocale( GetAppLanguageTag() ) );
sal_uInt16 nMenuPos = 0;
- sal_uInt16 nSubMenuPos = 0;
sal_uInt16 nMenuId = 1;
sal_uInt16 nSubMenuId = MN_ST_INSERT_START;
@@ -61,7 +60,7 @@ SwSmartTagPopup::SwSmartTagPopup( SwView* pSwView,
InsertSeparator(OString(), 0);
- for ( sal_uInt16 j = 0; j < aActionComponentsSequence.getLength(); ++j )
+ for ( sal_Int32 j = 0; j < aActionComponentsSequence.getLength(); ++j )
{
Reference< container::XStringKeyMap > xSmartTagProperties = rStringKeyMaps[j];
@@ -93,12 +92,12 @@ SwSmartTagPopup::SwSmartTagPopup( SwView* pSwView,
// sub-menu starts with smart tag caption and separator
const OUString aSmartTagCaption2 = aSmartTagCaption + ": " + aRangeText;
- nSubMenuPos = 0;
+ sal_uInt16 nSubMenuPos = 0;
pSbMenu->InsertItem(nMenuId++, aSmartTagCaption2, MIB_NOSELECT, OString(), nSubMenuPos++);
pSbMenu->InsertSeparator(OString(), nSubMenuPos++);
// Add subitem for every action reference for the current smart tag type:
- for ( sal_uInt16 i = 0; i < rActionComponents.getLength(); ++i )
+ for ( sal_Int32 i = 0; i < rActionComponents.getLength(); ++i )
{
xAction = rActionComponents[i];