From 8d54796bf152499ecbe61788be64c9035f725dfa Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 19 May 2014 10:02:29 +0200 Subject: enhance pass-by-ref plugin to detect large arguments Detect arguments larger than 64 chars passed by value. Change-Id: I9b0ea9ccb99d115984a26eab67c9cf6afd5f6cae Signed-off-by: Stephan Bergmann --- cui/source/inc/backgrnd.hxx | 2 +- cui/source/inc/border.hxx | 2 +- cui/source/inc/chardlg.hxx | 8 ++++---- cui/source/inc/connect.hxx | 2 +- cui/source/inc/cuitabarea.hxx | 6 +++--- cui/source/inc/cuitabline.hxx | 2 +- cui/source/inc/macroass.hxx | 2 +- cui/source/inc/measure.hxx | 2 +- cui/source/inc/numfmt.hxx | 2 +- cui/source/inc/numpages.hxx | 8 ++++---- cui/source/inc/page.hxx | 2 +- cui/source/inc/paragrph.hxx | 6 +++--- cui/source/inc/tabstpge.hxx | 2 +- cui/source/inc/textattr.hxx | 2 +- cui/source/tabpages/backgrnd.cxx | 2 +- cui/source/tabpages/border.cxx | 2 +- cui/source/tabpages/chardlg.cxx | 8 ++++---- cui/source/tabpages/connect.cxx | 2 +- cui/source/tabpages/macroass.cxx | 2 +- cui/source/tabpages/measure.cxx | 2 +- cui/source/tabpages/numfmt.cxx | 2 +- cui/source/tabpages/numpages.cxx | 8 ++++---- cui/source/tabpages/page.cxx | 2 +- cui/source/tabpages/paragrph.cxx | 6 +++--- cui/source/tabpages/tabstpge.cxx | 2 +- cui/source/tabpages/textattr.cxx | 2 +- cui/source/tabpages/tparea.cxx | 4 ++-- cui/source/tabpages/tpline.cxx | 2 +- cui/source/tabpages/tpshadow.cxx | 2 +- 29 files changed, 48 insertions(+), 48 deletions(-) (limited to 'cui') diff --git a/cui/source/inc/backgrnd.hxx b/cui/source/inc/backgrnd.hxx index 011c56cf4141..709e4ea3ebd6 100644 --- a/cui/source/inc/backgrnd.hxx +++ b/cui/source/inc/backgrnd.hxx @@ -62,7 +62,7 @@ public: void ShowParaControl(bool bCharOnly = false); void EnableTransparency(bool bColor, bool bGraphic); - virtual void PageCreated (SfxAllItemSet aSet) SAL_OVERRIDE; + virtual void PageCreated(const SfxAllItemSet& aSet) SAL_OVERRIDE; protected: virtual int DeactivatePage( SfxItemSet* pSet = 0 ) SAL_OVERRIDE; diff --git a/cui/source/inc/border.hxx b/cui/source/inc/border.hxx index 762c316d6ec1..a8eb384753ff 100644 --- a/cui/source/inc/border.hxx +++ b/cui/source/inc/border.hxx @@ -51,7 +51,7 @@ public: virtual void Reset( const SfxItemSet& ) SAL_OVERRIDE; void HideShadowControls(); - virtual void PageCreated (SfxAllItemSet aSet) SAL_OVERRIDE; + virtual void PageCreated(const SfxAllItemSet& aSet) SAL_OVERRIDE; protected: virtual int DeactivatePage( SfxItemSet* pSet = 0 ) SAL_OVERRIDE; virtual void DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE; diff --git a/cui/source/inc/chardlg.hxx b/cui/source/inc/chardlg.hxx index 8d21e27b90a7..d90c2cb94594 100644 --- a/cui/source/inc/chardlg.hxx +++ b/cui/source/inc/chardlg.hxx @@ -165,7 +165,7 @@ public: void SetPreviewBackgroundToCharacter(); void DisableControls( sal_uInt16 nDisable ); - virtual void PageCreated (SfxAllItemSet aSet) SAL_OVERRIDE; + virtual void PageCreated(const SfxAllItemSet& aSet) SAL_OVERRIDE; }; // class SvxCharEffectsPage ---------------------------------------------- @@ -241,7 +241,7 @@ public: void EnableFlash(); /// the writer uses SID_ATTR_BRUSH as font background void SetPreviewBackgroundToCharacter(); - virtual void PageCreated (SfxAllItemSet aSet) SAL_OVERRIDE; + virtual void PageCreated(const SfxAllItemSet& aSet) SAL_OVERRIDE; }; // class SvxCharPositionPage --------------------------------------------- @@ -318,7 +318,7 @@ public: virtual void FillUserData() SAL_OVERRIDE; /// the writer uses SID_ATTR_BRUSH as font background void SetPreviewBackgroundToCharacter(); - virtual void PageCreated (SfxAllItemSet aSet) SAL_OVERRIDE; + virtual void PageCreated(const SfxAllItemSet& aSet) SAL_OVERRIDE; }; // class SvxCharTwoLinesPage --------------------------------------------- @@ -360,7 +360,7 @@ public: virtual bool FillItemSet( SfxItemSet& rSet ) SAL_OVERRIDE; /// the writer uses SID_ATTR_BRUSH as font background void SetPreviewBackgroundToCharacter(); - virtual void PageCreated (SfxAllItemSet aSet) SAL_OVERRIDE; + virtual void PageCreated(const SfxAllItemSet& aSet) SAL_OVERRIDE; }; #endif // INCLUDED_CUI_SOURCE_INC_CHARDLG_HXX diff --git a/cui/source/inc/connect.hxx b/cui/source/inc/connect.hxx index 85d0e45f0bf3..b5763e941a9f 100644 --- a/cui/source/inc/connect.hxx +++ b/cui/source/inc/connect.hxx @@ -71,7 +71,7 @@ public: void Construct(); void SetView( const SdrView* pSdrView ) { pView = pSdrView; } - virtual void PageCreated (SfxAllItemSet aSet) SAL_OVERRIDE; + virtual void PageCreated(const SfxAllItemSet& aSet) SAL_OVERRIDE; }; /* Derived from SfxSingleTabDialog, in order to be informed about diff --git a/cui/source/inc/cuitabarea.hxx b/cui/source/inc/cuitabarea.hxx index b39c01375b83..4358fc457a21 100644 --- a/cui/source/inc/cuitabarea.hxx +++ b/cui/source/inc/cuitabarea.hxx @@ -173,7 +173,7 @@ public: void SetPageType(sal_uInt16 nInType) { nPageType = nInType; } void SetDlgType(sal_uInt16 nInType) { nDlgType = nInType; } - virtual void PageCreated (SfxAllItemSet aSet) SAL_OVERRIDE; + virtual void PageCreated(const SfxAllItemSet& aSet) SAL_OVERRIDE; }; /************************************************************************/ @@ -312,7 +312,7 @@ public: void SetDlgType( sal_uInt16 nInType ) { nDlgType = nInType; } void SetPos( sal_uInt16 nInPos ) { nPos = nInPos; } void SetAreaTP( bool* pIn ) { pbAreaTP = pIn; } - virtual void PageCreated (SfxAllItemSet aSet) SAL_OVERRIDE; + virtual void PageCreated(const SfxAllItemSet& aSet) SAL_OVERRIDE; void SetColorChgd( ChangeType* pIn ) { pnColorListState = pIn; } void SetGrdChgd( ChangeType* pIn ) { pnGradientListState = pIn; } void SetHtchChgd( ChangeType* pIn ) { pnHatchingListState = pIn; } @@ -371,7 +371,7 @@ public: void SetDlgType( sal_uInt16 nInType ) { nDlgType = nInType; } void SetAreaTP( bool* pIn ) { pbAreaTP = pIn; } void SetColorChgd( ChangeType* pIn ) { pnColorListState = pIn; } - virtual void PageCreated (SfxAllItemSet aSet) SAL_OVERRIDE; + virtual void PageCreated(const SfxAllItemSet& aSet) SAL_OVERRIDE; void DisablePage( bool bIn ) { bDisable = bIn; } }; diff --git a/cui/source/inc/cuitabline.hxx b/cui/source/inc/cuitabline.hxx index a1a28627a855..7384ec32b137 100644 --- a/cui/source/inc/cuitabline.hxx +++ b/cui/source/inc/cuitabline.hxx @@ -234,7 +234,7 @@ public: void SetDashChgd( ChangeType* pIn ) { pnDashListState = pIn; } void SetColorChgd( ChangeType* pIn ) { pnColorListState = pIn; } - virtual void PageCreated (SfxAllItemSet aSet) SAL_OVERRIDE; + virtual void PageCreated(const SfxAllItemSet& aSet) SAL_OVERRIDE; virtual void DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE; }; diff --git a/cui/source/inc/macroass.hxx b/cui/source/inc/macroass.hxx index 3ccba230f07e..a7a8cf94f8f5 100644 --- a/cui/source/inc/macroass.hxx +++ b/cui/source/inc/macroass.hxx @@ -64,7 +64,7 @@ public: void SetMacroTbl( const SvxMacroTableDtor& rTbl ); virtual void ScriptChanged(); - virtual void PageCreated (SfxAllItemSet aSet) SAL_OVERRIDE; + virtual void PageCreated (const SfxAllItemSet& aSet) SAL_OVERRIDE; using TabPage::ActivatePage; // FIXME WTF is this nonsense? virtual void ActivatePage( const SfxItemSet& ) SAL_OVERRIDE; void LaunchFillGroup(); diff --git a/cui/source/inc/measure.hxx b/cui/source/inc/measure.hxx index f8ce64198639..e8fb79426b74 100644 --- a/cui/source/inc/measure.hxx +++ b/cui/source/inc/measure.hxx @@ -77,7 +77,7 @@ public: void Construct(); void SetView( const SdrView* pSdrView ) { pView = pSdrView; } - virtual void PageCreated (SfxAllItemSet aSet) SAL_OVERRIDE; + virtual void PageCreated(const SfxAllItemSet& aSet) SAL_OVERRIDE; }; diff --git a/cui/source/inc/numfmt.hxx b/cui/source/inc/numfmt.hxx index 419ea6c98964..bb7bbe82e605 100644 --- a/cui/source/inc/numfmt.hxx +++ b/cui/source/inc/numfmt.hxx @@ -85,7 +85,7 @@ public: void SetOkHdl( const Link& rOkHandler ); void HideLanguage(bool nFlag=true); virtual bool PreNotify( NotifyEvent& rNEvt ) SAL_OVERRIDE; - virtual void PageCreated (SfxAllItemSet aSet) SAL_OVERRIDE; + virtual void PageCreated(const SfxAllItemSet& aSet) SAL_OVERRIDE; private: SvxNumberFormatTabPage( Window* pParent, const SfxItemSet& rCoreAttrs ); diff --git a/cui/source/inc/numpages.hxx b/cui/source/inc/numpages.hxx index b4e46aaea77c..5e115fde8a63 100644 --- a/cui/source/inc/numpages.hxx +++ b/cui/source/inc/numpages.hxx @@ -155,7 +155,7 @@ class SvxBulletPickTabPage : public SfxTabPage virtual void Reset( const SfxItemSet& rSet ) SAL_OVERRIDE; void SetCharFmtName(const OUString& rName){sBulletCharFmtName = rName;} - virtual void PageCreated(SfxAllItemSet aSet) SAL_OVERRIDE; + virtual void PageCreated(const SfxAllItemSet& aSet) SAL_OVERRIDE; }; #define NUM_VALUSET_COUNT 16 @@ -200,7 +200,7 @@ class SvxNumPickTabPage : public SfxTabPage void SetCharFmtNames(const OUString& rCharName, const OUString& rBulName) { sNumCharFmtName = rCharName; sBulletCharFmtName = rBulName;} - virtual void PageCreated(SfxAllItemSet aSet) SAL_OVERRIDE; + virtual void PageCreated(const SfxAllItemSet& aSet) SAL_OVERRIDE; }; @@ -363,7 +363,7 @@ class SvxNumOptionsTabPage : public SfxTabPage ListBox& GetCharFmtListBox() {return *m_pCharFmtLB;} void SetModified(bool bRepaint = true); - virtual void PageCreated(SfxAllItemSet aSet) SAL_OVERRIDE; + virtual void PageCreated(const SfxAllItemSet& aSet) SAL_OVERRIDE; /** Get the numberings provided by the i18n framework (CTL, Asian, ...) and add them to the listbox. Extended numbering schemes present in the @@ -459,7 +459,7 @@ public: void SetMetric(FieldUnit eSet); void SetModified(bool bRepaint = true); - virtual void PageCreated(SfxAllItemSet aSet) SAL_OVERRIDE; + virtual void PageCreated(const SfxAllItemSet& aSet) SAL_OVERRIDE; }; #endif diff --git a/cui/source/inc/page.hxx b/cui/source/inc/page.hxx index ff4a3c315592..56b7bef96783 100644 --- a/cui/source/inc/page.hxx +++ b/cui/source/inc/page.hxx @@ -191,7 +191,7 @@ public: { ePaperStart = eStart, ePaperEnd = eEnd; } void SetCollectionList(const std::vector &aList); - virtual void PageCreated (SfxAllItemSet aSet) SAL_OVERRIDE; + virtual void PageCreated(const SfxAllItemSet& aSet) SAL_OVERRIDE; }; #endif // INCLUDED_CUI_SOURCE_INC_PAGE_HXX diff --git a/cui/source/inc/paragrph.hxx b/cui/source/inc/paragrph.hxx index afa569ae448c..81dc3919eb5d 100644 --- a/cui/source/inc/paragrph.hxx +++ b/cui/source/inc/paragrph.hxx @@ -113,7 +113,7 @@ public: void EnableAutoFirstLine(); void EnableAbsLineDist(long nMinTwip); void EnableNegativeMode(); - virtual void PageCreated(SfxAllItemSet aSet) SAL_OVERRIDE; + virtual void PageCreated(const SfxAllItemSet& aSet) SAL_OVERRIDE; virtual ~SvxStdParagraphTabPage(); }; @@ -167,7 +167,7 @@ public: virtual void Reset( const SfxItemSet& rSet ) SAL_OVERRIDE; void EnableJustifyExt(); - virtual void PageCreated(SfxAllItemSet aSet) SAL_OVERRIDE; + virtual void PageCreated(const SfxAllItemSet& aSet) SAL_OVERRIDE; }; // class SvxExtParagraphTabPage ------------------------------------------ @@ -252,7 +252,7 @@ private: DECL_LINK( PageBreakPosHdl_Impl, ListBox* ); DECL_LINK( PageBreakTypeHdl_Impl, ListBox* ); - virtual void PageCreated(SfxAllItemSet aSet) SAL_OVERRIDE; + virtual void PageCreated(const SfxAllItemSet& aSet) SAL_OVERRIDE; }; diff --git a/cui/source/inc/tabstpge.hxx b/cui/source/inc/tabstpge.hxx index 31b3e3db664f..2f8a384039fb 100644 --- a/cui/source/inc/tabstpge.hxx +++ b/cui/source/inc/tabstpge.hxx @@ -117,7 +117,7 @@ private: DECL_LINK( GetFillCharHdl_Impl, Edit* ); DECL_LINK( GetDezCharHdl_Impl, Edit* ); - virtual void PageCreated(SfxAllItemSet aSet) SAL_OVERRIDE; + virtual void PageCreated(const SfxAllItemSet& aSet) SAL_OVERRIDE; }; #endif // INCLUDED_CUI_SOURCE_INC_TABSTPGE_HXX diff --git a/cui/source/inc/textattr.hxx b/cui/source/inc/textattr.hxx index 18c3b4aeaada..24c360595956 100644 --- a/cui/source/inc/textattr.hxx +++ b/cui/source/inc/textattr.hxx @@ -87,7 +87,7 @@ public: void Construct(); void SetView( const SdrView* pSdrView ) { pView = pSdrView; } - virtual void PageCreated(SfxAllItemSet aSet) SAL_OVERRIDE; + virtual void PageCreated(const SfxAllItemSet& aSet) SAL_OVERRIDE; }; #endif // INCLUDED_CUI_SOURCE_INC_TEXTATTR_HXX diff --git a/cui/source/tabpages/backgrnd.cxx b/cui/source/tabpages/backgrnd.cxx index 110fc148254c..374f79dc19b2 100644 --- a/cui/source/tabpages/backgrnd.cxx +++ b/cui/source/tabpages/backgrnd.cxx @@ -1832,7 +1832,7 @@ void SvxBackgroundTabPage::EnableTransparency(bool bColor, bool bGraphic) m_pColTransMF->Show(bColor); } -void SvxBackgroundTabPage::PageCreated (SfxAllItemSet aSet) +void SvxBackgroundTabPage::PageCreated(const SfxAllItemSet& aSet) { SFX_ITEMSET_ARG (&aSet,pFlagItem,SfxUInt32Item,SID_FLAG_TYPE,false); diff --git a/cui/source/tabpages/border.cxx b/cui/source/tabpages/border.cxx index bf03f68796a3..476b7b3e5b40 100644 --- a/cui/source/tabpages/border.cxx +++ b/cui/source/tabpages/border.cxx @@ -1193,7 +1193,7 @@ void SvxBorderTabPage::DataChanged( const DataChangedEvent& rDCEvt ) SfxTabPage::DataChanged( rDCEvt ); } -void SvxBorderTabPage::PageCreated (SfxAllItemSet aSet) +void SvxBorderTabPage::PageCreated(const SfxAllItemSet& aSet) { SFX_ITEMSET_ARG (&aSet,pSWModeItem,SfxUInt16Item,SID_SWMODE_TYPE,false); SFX_ITEMSET_ARG (&aSet,pFlagItem,SfxUInt32Item,SID_FLAG_TYPE,false); diff --git a/cui/source/tabpages/chardlg.cxx b/cui/source/tabpages/chardlg.cxx index 10ff5977e639..1f0e585609f4 100644 --- a/cui/source/tabpages/chardlg.cxx +++ b/cui/source/tabpages/chardlg.cxx @@ -1265,7 +1265,7 @@ void SvxCharNamePage::SetPreviewBackgroundToCharacter() } -void SvxCharNamePage::PageCreated (SfxAllItemSet aSet) +void SvxCharNamePage::PageCreated(const SfxAllItemSet& aSet) { SFX_ITEMSET_ARG (&aSet,pFontListItem,SvxFontListItem,SID_ATTR_CHAR_FONTLIST,false); SFX_ITEMSET_ARG (&aSet,pFlagItem,SfxUInt32Item,SID_FLAG_TYPE,false); @@ -2518,7 +2518,7 @@ void SvxCharEffectsPage::SetPreviewBackgroundToCharacter() } -void SvxCharEffectsPage::PageCreated (SfxAllItemSet aSet) +void SvxCharEffectsPage::PageCreated(const SfxAllItemSet& aSet) { SFX_ITEMSET_ARG (&aSet,pDisableCtlItem,SfxUInt16Item,SID_DISABLE_CTL,false); SFX_ITEMSET_ARG (&aSet,pFlagItem,SfxUInt32Item,SID_FLAG_TYPE,false); @@ -3289,7 +3289,7 @@ void SvxCharPositionPage::SetPreviewBackgroundToCharacter() m_bPreviewBackgroundToCharacter = true; } -void SvxCharPositionPage::PageCreated (SfxAllItemSet aSet) +void SvxCharPositionPage::PageCreated(const SfxAllItemSet& aSet) { SFX_ITEMSET_ARG (&aSet,pFlagItem,SfxUInt32Item,SID_FLAG_TYPE,false); if (pFlagItem) @@ -3533,7 +3533,7 @@ void SvxCharTwoLinesPage::SetPreviewBackgroundToCharacter() } -void SvxCharTwoLinesPage::PageCreated (SfxAllItemSet aSet) +void SvxCharTwoLinesPage::PageCreated(const SfxAllItemSet& aSet) { SFX_ITEMSET_ARG (&aSet,pFlagItem,SfxUInt32Item,SID_FLAG_TYPE,false); if (pFlagItem) diff --git a/cui/source/tabpages/connect.cxx b/cui/source/tabpages/connect.cxx index 8b32636848d4..dbc40966f05e 100644 --- a/cui/source/tabpages/connect.cxx +++ b/cui/source/tabpages/connect.cxx @@ -508,7 +508,7 @@ void SvxConnectionPage::FillTypeLB() } } } -void SvxConnectionPage::PageCreated (SfxAllItemSet aSet) +void SvxConnectionPage::PageCreated(const SfxAllItemSet& aSet) { SFX_ITEMSET_ARG(&aSet,pOfaPtrItem,OfaPtrItem,SID_OBJECT_LIST,false); if (pOfaPtrItem) diff --git a/cui/source/tabpages/macroass.cxx b/cui/source/tabpages/macroass.cxx index 159389d57f38..cc180d67f4ba 100644 --- a/cui/source/tabpages/macroass.cxx +++ b/cui/source/tabpages/macroass.cxx @@ -209,7 +209,7 @@ void _SfxMacroTabPage::ActivatePage( const SfxItemSet& ) LaunchFillGroup(); } -void _SfxMacroTabPage::PageCreated (SfxAllItemSet aSet) +void _SfxMacroTabPage::PageCreated(const SfxAllItemSet& aSet) { const SfxPoolItem* pEventsItem; if( !mpImpl->bGotEvents && SFX_ITEM_SET == aSet.GetItemState( SID_EVENTCONFIG, true, &pEventsItem ) ) diff --git a/cui/source/tabpages/measure.cxx b/cui/source/tabpages/measure.cxx index 853fe8f0582f..61b2baac7a26 100644 --- a/cui/source/tabpages/measure.cxx +++ b/cui/source/tabpages/measure.cxx @@ -808,7 +808,7 @@ void SvxMeasurePage::FillUnitLB() m_pLbUnit->SetEntryData( nPos, (void*)nUnit ); } } -void SvxMeasurePage::PageCreated (SfxAllItemSet aSet) +void SvxMeasurePage::PageCreated(const SfxAllItemSet& aSet) { SFX_ITEMSET_ARG (&aSet,pOfaPtrItem,OfaPtrItem,SID_OBJECT_LIST,false); diff --git a/cui/source/tabpages/numfmt.cxx b/cui/source/tabpages/numfmt.cxx index bd2eb9906f72..76a7743f29e7 100644 --- a/cui/source/tabpages/numfmt.cxx +++ b/cui/source/tabpages/numfmt.cxx @@ -1720,7 +1720,7 @@ void SvxNumberFormatTabPage::AddAutomaticLanguage_Impl(LanguageType eAutoLang, b m_pLbLanguage->SelectEntryPos(nPos); } -void SvxNumberFormatTabPage::PageCreated (SfxAllItemSet aSet) +void SvxNumberFormatTabPage::PageCreated(const SfxAllItemSet& aSet) { SFX_ITEMSET_ARG (&aSet,pNumberInfoItem,SvxNumberInfoItem,SID_ATTR_NUMBERFORMAT_INFO,false); SFX_ITEMSET_ARG (&aSet,pLinkItem,SfxLinkItem,SID_LINK_TYPE,false); diff --git a/cui/source/tabpages/numpages.cxx b/cui/source/tabpages/numpages.cxx index 826e60061e51..70911201f7d5 100644 --- a/cui/source/tabpages/numpages.cxx +++ b/cui/source/tabpages/numpages.cxx @@ -512,7 +512,7 @@ IMPL_LINK_NOARG(SvxBulletPickTabPage, DoubleClickHdl_Impl) } -void SvxBulletPickTabPage::PageCreated(SfxAllItemSet aSet) +void SvxBulletPickTabPage::PageCreated(const SfxAllItemSet& aSet) { SFX_ITEMSET_ARG (&aSet,pBulletCharFmt,SfxStringItem,SID_BULLET_CHAR_FMT,false); @@ -762,7 +762,7 @@ IMPL_LINK_NOARG(SvxNumPickTabPage, DoubleClickHdl_Impl) return 0; } -void SvxNumPickTabPage::PageCreated(SfxAllItemSet aSet) +void SvxNumPickTabPage::PageCreated(const SfxAllItemSet& aSet) { SFX_ITEMSET_ARG (&aSet,pNumCharFmt,SfxStringItem,SID_NUM_CHAR_FMT,false); SFX_ITEMSET_ARG (&aSet,pBulletCharFmt,SfxStringItem,SID_BULLET_CHAR_FMT,false); @@ -3492,7 +3492,7 @@ void SvxNumOptionsTabPage::SetModified(bool bRepaint) } } -void SvxNumOptionsTabPage::PageCreated(SfxAllItemSet aSet) +void SvxNumOptionsTabPage::PageCreated(const SfxAllItemSet& aSet) { SFX_ITEMSET_ARG (&aSet,pListItem,SfxStringListItem,SID_CHAR_FMT_LIST_BOX,false); SFX_ITEMSET_ARG (&aSet,pNumCharFmt,SfxStringItem,SID_NUM_CHAR_FMT,false); @@ -3514,7 +3514,7 @@ void SvxNumOptionsTabPage::PageCreated(SfxAllItemSet aSet) SetMetric(static_cast(pMetricItem->GetValue())); } -void SvxNumPositionTabPage::PageCreated(SfxAllItemSet aSet) +void SvxNumPositionTabPage::PageCreated(const SfxAllItemSet& aSet) { SFX_ITEMSET_ARG (&aSet,pMetricItem,SfxAllEnumItem,SID_METRIC_ITEM,false); diff --git a/cui/source/tabpages/page.cxx b/cui/source/tabpages/page.cxx index fbc24a7d7176..9622108e51a1 100644 --- a/cui/source/tabpages/page.cxx +++ b/cui/source/tabpages/page.cxx @@ -1672,7 +1672,7 @@ bool SvxPageDescPage::IsMarginOutOfRange() return bRet; } -void SvxPageDescPage::PageCreated (SfxAllItemSet aSet) +void SvxPageDescPage::PageCreated(const SfxAllItemSet& aSet) { SFX_ITEMSET_ARG (&aSet,pModeItem,SfxAllEnumItem,SID_ENUM_PAGE_MODE,false); SFX_ITEMSET_ARG (&aSet,pPaperStartItem,SfxAllEnumItem,SID_PAPER_START,false); diff --git a/cui/source/tabpages/paragrph.cxx b/cui/source/tabpages/paragrph.cxx index 271065b76fe4..6dba191153fc 100644 --- a/cui/source/tabpages/paragrph.cxx +++ b/cui/source/tabpages/paragrph.cxx @@ -915,7 +915,7 @@ void SvxStdParagraphTabPage::EnableAbsLineDist(long nMinTwip) nMinFixDist = nMinTwip; } -void SvxStdParagraphTabPage::PageCreated(SfxAllItemSet aSet) +void SvxStdParagraphTabPage::PageCreated(const SfxAllItemSet& aSet) { /* different bit represent call to different method of SvxStdParagraphTabPage @@ -1310,7 +1310,7 @@ void SvxParaAlignTabPage::EnableJustifyExt() } -void SvxParaAlignTabPage::PageCreated (SfxAllItemSet aSet) +void SvxParaAlignTabPage::PageCreated (const SfxAllItemSet& aSet) { SFX_ITEMSET_ARG (&aSet,pBoolItem,SfxBoolItem,SID_SVXPARAALIGNTABPAGE_ENABLEJUSTIFYEXT,false); if (pBoolItem) @@ -2104,7 +2104,7 @@ IMPL_LINK( SvxExtParagraphTabPage, PageBreakTypeHdl_Impl, ListBox *, pListBox ) return 0; } -void SvxExtParagraphTabPage::PageCreated(SfxAllItemSet aSet) +void SvxExtParagraphTabPage::PageCreated(const SfxAllItemSet& aSet) { SFX_ITEMSET_ARG (&aSet,pDisablePageBreakItem,SfxBoolItem,SID_DISABLE_SVXEXTPARAGRAPHTABPAGE_PAGEBREAK,false); diff --git a/cui/source/tabpages/tabstpge.cxx b/cui/source/tabpages/tabstpge.cxx index 0e990637db30..32896237893b 100644 --- a/cui/source/tabpages/tabstpge.cxx +++ b/cui/source/tabpages/tabstpge.cxx @@ -724,7 +724,7 @@ IMPL_LINK_NOARG(SvxTabulatorTabPage, ModifyHdl_Impl) return 0; } -void SvxTabulatorTabPage::PageCreated(SfxAllItemSet aSet) +void SvxTabulatorTabPage::PageCreated(const SfxAllItemSet& aSet) { SFX_ITEMSET_ARG (&aSet,pControlItem,SfxUInt16Item,SID_SVXTABULATORTABPAGE_CONTROLFLAGS,false); if (pControlItem) diff --git a/cui/source/tabpages/textattr.cxx b/cui/source/tabpages/textattr.cxx index aa5bf41a3114..f349198f8ac4 100644 --- a/cui/source/tabpages/textattr.cxx +++ b/cui/source/tabpages/textattr.cxx @@ -699,7 +699,7 @@ bool SvxTextAttrPage::IsTextDirectionLeftToRight (void) const return bLeftToRightDirection; } -void SvxTextAttrPage::PageCreated(SfxAllItemSet aSet) +void SvxTextAttrPage::PageCreated(const SfxAllItemSet& aSet) { SFX_ITEMSET_ARG (&aSet,pViewItem,OfaPtrItem,SID_SVXTEXTATTRPAGE_VIEW,false); diff --git a/cui/source/tabpages/tparea.cxx b/cui/source/tabpages/tparea.cxx index b927c39eef55..eb0add42eb74 100644 --- a/cui/source/tabpages/tparea.cxx +++ b/cui/source/tabpages/tparea.cxx @@ -560,7 +560,7 @@ void SvxTransparenceTabPage::InvalidatePreview (bool bEnable) } } -void SvxTransparenceTabPage::PageCreated (SfxAllItemSet aSet) +void SvxTransparenceTabPage::PageCreated(const SfxAllItemSet& aSet) { SFX_ITEMSET_ARG (&aSet,pPageTypeItem,SfxUInt16Item,SID_PAGE_TYPE,false); SFX_ITEMSET_ARG (&aSet,pDlgTypeItem,SfxUInt16Item,SID_DLG_TYPE,false); @@ -2374,7 +2374,7 @@ void SvxAreaTabPage::PointChanged( Window* pWindow, RECT_POINT eRcPt ) ModifyTileHdl_Impl( pWindow ); } -void SvxAreaTabPage::PageCreated (SfxAllItemSet aSet) +void SvxAreaTabPage::PageCreated(const SfxAllItemSet& aSet) { SFX_ITEMSET_ARG (&aSet,pColorListItem,SvxColorListItem,SID_COLOR_TABLE,false); SFX_ITEMSET_ARG (&aSet,pGradientListItem,SvxGradientListItem,SID_GRADIENT_LIST,false); diff --git a/cui/source/tabpages/tpline.cxx b/cui/source/tabpages/tpline.cxx index 536595696dd0..d6878cd78e23 100644 --- a/cui/source/tabpages/tpline.cxx +++ b/cui/source/tabpages/tpline.cxx @@ -1821,7 +1821,7 @@ void SvxLineTabPage::DataChanged( const DataChangedEvent& rDCEvt ) } } -void SvxLineTabPage::PageCreated (SfxAllItemSet aSet) +void SvxLineTabPage::PageCreated(const SfxAllItemSet& aSet) { SFX_ITEMSET_ARG (&aSet,pColorListItem,SvxColorListItem,SID_COLOR_TABLE,false); SFX_ITEMSET_ARG (&aSet,pDashListItem,SvxDashListItem,SID_DASH_LIST,false); diff --git a/cui/source/tabpages/tpshadow.cxx b/cui/source/tabpages/tpshadow.cxx index 161d576d4d7d..15c58c1c29d4 100644 --- a/cui/source/tabpages/tpshadow.cxx +++ b/cui/source/tabpages/tpshadow.cxx @@ -541,7 +541,7 @@ void SvxShadowTabPage::PointChanged( Window* pWindow, RECT_POINT eRcPt ) ModifyShadowHdl_Impl( pWindow ); } -void SvxShadowTabPage::PageCreated (SfxAllItemSet aSet) +void SvxShadowTabPage::PageCreated(const SfxAllItemSet& aSet) { SFX_ITEMSET_ARG (&aSet,pColorListItem,SvxColorListItem,SID_COLOR_TABLE,false); SFX_ITEMSET_ARG (&aSet,pPageTypeItem,SfxUInt16Item,SID_PAGE_TYPE,false); -- cgit v1.2.3