summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2015-11-06 09:47:54 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2015-11-10 21:08:08 +0100
commitb905d3e9f261fd9dbe9fdbedacd302ee2898c24a (patch)
treecb061bd92ad42d622d3ee5633dd4bb33c0e7b8cf /sfx2
parent88f4866803fc766503292252cb36af4a70ea98fd (diff)
sal_uIntPtr to sal_Int32
Change-Id: Ib21faeca4ca05bcb534c0418025c7f2607d21077
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/styfitem.cxx15
1 files changed, 7 insertions, 8 deletions
diff --git a/sfx2/source/dialog/styfitem.cxx b/sfx2/source/dialog/styfitem.cxx
index bc3aeb6553e2..d98a47422361 100644
--- a/sfx2/source/dialog/styfitem.cxx
+++ b/sfx2/source/dialog/styfitem.cxx
@@ -38,17 +38,16 @@ SfxStyleFamilyItem::SfxStyleFamilyItem( const ResId &rResId ) :
Resource( rResId.SetRT( RSC_SFX_STYLE_FAMILY_ITEM ) )
{
- sal_uIntPtr nMask = ReadLongRes();
+ const sal_Int32 nMask = ReadLongRes();
if(nMask & RSC_SFX_STYLE_ITEM_LIST)
{
- sal_uIntPtr nCount = ReadLongRes();
- for( sal_uIntPtr i = 0; i < nCount; i++ )
+ const sal_Int32 nCount = ReadLongRes();
+ for( sal_Int32 i = 0; i < nCount; ++i )
{
SfxFilterTupel *pTupel = new SfxFilterTupel;
pTupel->aName = ReadStringRes();
- long lFlags = ReadLongRes();
- pTupel->nFlags = (sal_uInt16)lFlags;
+ pTupel->nFlags = static_cast<sal_uInt16>(ReadLongRes());
aFilterList.push_back( pTupel );
}
}
@@ -67,7 +66,7 @@ SfxStyleFamilyItem::SfxStyleFamilyItem( const ResId &rResId ) :
}
if(nMask & RSC_SFX_STYLE_ITEM_STYLEFAMILY)
{
- nFamily = (sal_uInt16)ReadLongRes();
+ nFamily = static_cast<sal_uInt16>(ReadLongRes());
}
else
nFamily = SFX_STYLE_FAMILY_PARA;
@@ -98,8 +97,8 @@ SfxStyleFamilyItem::~SfxStyleFamilyItem()
SfxStyleFamilies::SfxStyleFamilies( const ResId& rResId ) :
Resource( rResId.SetRT( RSC_SFX_STYLE_FAMILIES ).SetAutoRelease( false ) )
{
- sal_uIntPtr nCount = ReadLongRes();
- for( sal_uIntPtr i = 0; i < nCount; i++ )
+ const sal_Int32 nCount = ReadLongRes();
+ for( sal_Int32 i = 0; i < nCount; ++i )
{
const ResId aResId(static_cast<RSHEADER_TYPE *>(GetClassRes()), *rResId.GetResMgr());
SfxStyleFamilyItem *pItem = new SfxStyleFamilyItem(aResId);