Kaydet (Commit) ddd86d9e authored tarafından Matteo Casalin's avatar Matteo Casalin

sal_uInt16: constify and avoid unneed cast

Change-Id: I78fe90f24805c5bca3548cf4c005d2c44574aa5c
üst 4ad08a70
...@@ -259,7 +259,7 @@ void ItemSetToPageDesc( const SfxItemSet& rSet, SwPageDesc& rPageDesc ) ...@@ -259,7 +259,7 @@ void ItemSetToPageDesc( const SfxItemSet& rSet, SwPageDesc& rPageDesc )
{ {
const SvxPageItem& rPageItem = (const SvxPageItem&)rSet.Get(SID_ATTR_PAGE); const SvxPageItem& rPageItem = (const SvxPageItem&)rSet.Get(SID_ATTR_PAGE);
sal_uInt16 nUse = (sal_uInt16)rPageItem.GetPageUsage(); const sal_uInt16 nUse = rPageItem.GetPageUsage();
if(nUse) if(nUse)
rPageDesc.SetUseOn( lcl_convertUseFromSvx((UseOnPage) nUse) ); rPageDesc.SetUseOn( lcl_convertUseFromSvx((UseOnPage) nUse) );
rPageDesc.SetLandscape(rPageItem.IsLandscape()); rPageDesc.SetLandscape(rPageItem.IsLandscape());
...@@ -380,7 +380,8 @@ void ItemSetToPageDesc( const SfxItemSet& rSet, SwPageDesc& rPageDesc ) ...@@ -380,7 +380,8 @@ void ItemSetToPageDesc( const SfxItemSet& rSet, SwPageDesc& rPageDesc )
SwTxtFmtColl* pColl = rDoc.FindTxtFmtCollByName( rColl ); SwTxtFmtColl* pColl = rDoc.FindTxtFmtCollByName( rColl );
if( !pColl ) if( !pColl )
{ {
sal_uInt16 nId = SwStyleNameMapper::GetPoolIdFromUIName( rColl, nsSwGetPoolIdFromName::GET_POOLID_TXTCOLL ); const sal_uInt16 nId = SwStyleNameMapper::GetPoolIdFromUIName(
rColl, nsSwGetPoolIdFromName::GET_POOLID_TXTCOLL );
if( USHRT_MAX != nId ) if( USHRT_MAX != nId )
pColl = rDoc.GetTxtCollFromPool( nId ); pColl = rDoc.GetTxtCollFromPool( nId );
else else
...@@ -781,7 +782,7 @@ void SetApplyCharUnit(bool bApplyChar, bool bWeb) ...@@ -781,7 +782,7 @@ void SetApplyCharUnit(bool bApplyChar, bool bWeb)
bool ExecuteMenuCommand( PopupMenu& rMenu, SfxViewFrame& rViewFrame, sal_uInt16 nId ) bool ExecuteMenuCommand( PopupMenu& rMenu, SfxViewFrame& rViewFrame, sal_uInt16 nId )
{ {
bool bRet = false; bool bRet = false;
sal_uInt16 nItemCount = rMenu.GetItemCount(); const sal_uInt16 nItemCount = rMenu.GetItemCount();
OUString sCommand; OUString sCommand;
for( sal_uInt16 nItem = 0; nItem < nItemCount; ++nItem) for( sal_uInt16 nItem = 0; nItem < nItemCount; ++nItem)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment