diff options
author | Noel Grandin <noel@peralex.com> | 2016-09-07 11:36:20 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-09-07 11:36:20 +0200 |
commit | 15da84c9c3a5323075c5e97ccd595a130f54cf20 (patch) | |
tree | a44ab237c892ccfbbddabeac7d47a7bf2a977553 /sw/source/uibase/app | |
parent | c158c00489d35af7f5f9278b8ee545678d6a42e5 (diff) |
loplugin:constantparam in sw
Change-Id: I16badc615e98202668b1b201035b5137cb94c10c
Diffstat (limited to 'sw/source/uibase/app')
-rw-r--r-- | sw/source/uibase/app/appopt.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/uibase/app/appopt.cxx b/sw/source/uibase/app/appopt.cxx index 3740c55caf76..7f9072119685 100644 --- a/sw/source/uibase/app/appopt.cxx +++ b/sw/source/uibase/app/appopt.cxx @@ -118,11 +118,11 @@ SfxItemSet* SwModule::CreateItemSet( sal_uInt16 nId ) #endif 0); - pRet->Put( SwDocDisplayItem( aViewOpt, FN_PARAM_DOCDISP) ); - pRet->Put( SwElemItem( aViewOpt, FN_PARAM_ELEM) ); + pRet->Put( SwDocDisplayItem( aViewOpt ) ); + pRet->Put( SwElemItem( aViewOpt ) ); if( bTextDialog ) { - pRet->Put( SwShadowCursorItem( aViewOpt, FN_PARAM_SHADOWCURSOR )); + pRet->Put( SwShadowCursorItem( aViewOpt )); pRet->Put( SfxBoolItem(FN_PARAM_CRSR_IN_PROTECTED, aViewOpt.IsCursorInProtectedArea())); pRet->Put(SfxBoolItem(FN_PARAM_IGNORE_PROTECTED, aViewOpt.IsIgnoreProtectedArea())); } @@ -227,7 +227,7 @@ SfxItemSet* SwModule::CreateItemSet( sal_uInt16 nId ) if(!pOpt) pOpt = GetPrtOptions(!bTextDialog); - SwAddPrinterItem aAddPrinterItem (FN_PARAM_ADDPRINTER, *pOpt ); + SwAddPrinterItem aAddPrinterItem(*pOpt ); pRet->Put(aAddPrinterItem); // Options for Web background @@ -477,7 +477,7 @@ VclPtr<SfxTabPage> SwModule::CreateTabPage( sal_uInt16 nId, vcl::Window* pParent if( (bWebView && RID_SW_TP_HTML_OPTTABLE_PAGE == nId) || (!bWebView && RID_SW_TP_HTML_OPTTABLE_PAGE != nId) ) { - aSet.Put (SwWrtShellItem(SID_WRT_SHELL,pCurrView->GetWrtShellPtr())); + aSet.Put (SwWrtShellItem(pCurrView->GetWrtShellPtr())); pRet->PageCreated(aSet); } } @@ -499,7 +499,7 @@ VclPtr<SfxTabPage> SwModule::CreateTabPage( sal_uInt16 nId, vcl::Window* pParent SwView* pCurrView = GetView(); if(pCurrView) { - aSet.Put( SwWrtShellItem( SID_WRT_SHELL, pCurrView->GetWrtShellPtr() ) ); + aSet.Put( SwWrtShellItem( pCurrView->GetWrtShellPtr() ) ); pRet->PageCreated(aSet); } } |