summaryrefslogtreecommitdiff
path: root/sw/source/uibase/utlui/numfmtlb.cxx
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2014-06-28 11:04:32 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2014-06-28 11:17:58 +0200
commitdc23ed9814e52d3bb052d7c21042ec11d087593c (patch)
treeb698b64b8d2aa2a23bbe86f9481259e0f6919106 /sw/source/uibase/utlui/numfmtlb.cxx
parent53e3cfdcd35cb4bc934975d233b0e8d24c8af9b1 (diff)
sal_uInt16 to sal_(u)Int32
Change-Id: I20c3715bcfb5212977699d661fd3acf1be28499f
Diffstat (limited to 'sw/source/uibase/utlui/numfmtlb.cxx')
-rw-r--r--sw/source/uibase/utlui/numfmtlb.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sw/source/uibase/utlui/numfmtlb.cxx b/sw/source/uibase/utlui/numfmtlb.cxx
index b3e37525f82a..58ee5385abd1 100644
--- a/sw/source/uibase/utlui/numfmtlb.cxx
+++ b/sw/source/uibase/utlui/numfmtlb.cxx
@@ -206,7 +206,7 @@ void NumFormatListBox::SetFormatType(const short nFormatType)
}
const SvNumberformat* pFmt;
- sal_uInt16 nPos, i = 0;
+ sal_Int32 i = 0;
sal_uLong nFormat;
Color* pCol;
double fVal = GetDefValue( nFormatType );
@@ -241,7 +241,7 @@ void NumFormatListBox::SetFormatType(const short nFormatType)
nFormat != nSysShortDateFmt &&
nFormat != nSysLongDateFmt)
{
- nPos = InsertEntry( sValue );
+ const sal_Int32 nPos = InsertEntry( sValue );
SetEntryData( nPos, (void*)nFormat );
if( nFormat == pFormatter->GetStandardFormat(
@@ -253,7 +253,7 @@ void NumFormatListBox::SetFormatType(const short nFormatType)
if (!pOwnFormatter)
{
- nPos = InsertEntry(SW_RESSTR( STR_DEFINE_NUMBERFORMAT ));
+ const sal_Int32 nPos = InsertEntry(SW_RESSTR( STR_DEFINE_NUMBERFORMAT ));
SetEntryData( nPos, NULL );
}
@@ -290,7 +290,7 @@ void NumFormatListBox::SetDefFormat(const sal_uLong nDefFmt)
sal_uLong nFormat = pFormatter->GetFormatForLanguageIfBuiltIn(nDefFmt, eCurLanguage);
- for (sal_uInt16 i = 0; i < GetEntryCount(); i++)
+ for (sal_Int32 i = 0; i < GetEntryCount(); i++)
{
if (nFormat == (sal_uLong)GetEntryData(i))
{
@@ -315,7 +315,7 @@ void NumFormatListBox::SetDefFormat(const sal_uLong nDefFmt)
pFormatter->GetOutputString(fValue, nDefFmt, sValue, &pCol);
}
- sal_uInt16 nPos = 0;
+ sal_Int32 nPos = 0;
while ((sal_uLong)GetEntryData(nPos) == ULONG_MAX)
nPos++;
@@ -361,7 +361,7 @@ sal_uLong NumFormatListBox::GetFormat() const
IMPL_LINK( NumFormatListBox, SelectHdl, ListBox *, pBox )
{
- sal_uInt16 nPos = pBox->GetSelectEntryPos();
+ const sal_Int32 nPos = pBox->GetSelectEntryPos();
OUString sDefine(SW_RES( STR_DEFINE_NUMBERFORMAT ));
SwView *pView = GetView();
@@ -410,7 +410,7 @@ IMPL_LINK( NumFormatListBox, SelectHdl, ListBox *, pBox )
{
const sal_uInt32* pDelArr = ((SvxNumberInfoItem*)pItem)->GetDelArray();
- for ( sal_uInt16 i = 0; i < ((SvxNumberInfoItem*)pItem)->GetDelCount(); i++ )
+ for ( sal_uInt32 i = 0; i < ((SvxNumberInfoItem*)pItem)->GetDelCount(); i++ )
pFormatter->DeleteEntry( pDelArr[i] );
}