diff options
author | Noel Grandin <noel@peralex.com> | 2014-05-19 10:02:29 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-05-20 11:17:22 +0200 |
commit | 8d54796bf152499ecbe61788be64c9035f725dfa (patch) | |
tree | 9516219cf8e60bdd46597e522ca4e9fde9b8f407 /sw | |
parent | e4740dbecfce958c2c707d8cc92e6dbe52f4b71b (diff) |
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 <sbergman@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/uibase/inc/optpage.hxx | 8 | ||||
-rw-r--r-- | sw/source/ui/config/optpage.cxx | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/core/uibase/inc/optpage.hxx b/sw/source/core/uibase/inc/optpage.hxx index ddf79b070474..42bd08e77603 100644 --- a/sw/source/core/uibase/inc/optpage.hxx +++ b/sw/source/core/uibase/inc/optpage.hxx @@ -131,7 +131,7 @@ public: void SetFax( const std::vector<OUString>& ); void SelectFax( const OUString& ); void SetPreview(bool bPrev); - virtual void PageCreated (SfxAllItemSet aSet) SAL_OVERRIDE; + virtual void PageCreated( const SfxAllItemSet& aSet) SAL_OVERRIDE; }; @@ -202,7 +202,7 @@ public: virtual void Reset( const SfxItemSet& rSet ) SAL_OVERRIDE; void SetFontMode(sal_uInt8 nGroup) {nFontGroup = nGroup;} - virtual void PageCreated (SfxAllItemSet aSet) SAL_OVERRIDE; + virtual void PageCreated( const SfxAllItemSet& aSet ) SAL_OVERRIDE; }; class SwTableOptionsTabPage : public SfxTabPage @@ -244,7 +244,7 @@ public: virtual void Reset( const SfxItemSet& rSet ) SAL_OVERRIDE; void SetWrtShell(SwWrtShell* pSh) {pWrtShell = pSh;} - virtual void PageCreated (SfxAllItemSet aSet) SAL_OVERRIDE; + virtual void PageCreated( const SfxAllItemSet& aSet) SAL_OVERRIDE; }; @@ -290,7 +290,7 @@ public: virtual void Reset( const SfxItemSet& rSet ) SAL_OVERRIDE; void SetWrtShell( SwWrtShell * pSh ) { m_pWrtShell = pSh; } - virtual void PageCreated( SfxAllItemSet aSet ) SAL_OVERRIDE; + virtual void PageCreated( const SfxAllItemSet& aSet ) SAL_OVERRIDE; }; /*----------------------------------------------------------------------- diff --git a/sw/source/ui/config/optpage.cxx b/sw/source/ui/config/optpage.cxx index 6199f3c56db7..097e31aa53b1 100644 --- a/sw/source/ui/config/optpage.cxx +++ b/sw/source/ui/config/optpage.cxx @@ -488,7 +488,7 @@ IMPL_LINK_NOARG_INLINE_START(SwAddPrinterTabPage, SelectHdl) } IMPL_LINK_NOARG_INLINE_END(SwAddPrinterTabPage, SelectHdl) -void SwAddPrinterTabPage::PageCreated (SfxAllItemSet aSet) +void SwAddPrinterTabPage::PageCreated( const SfxAllItemSet& aSet) { SFX_ITEMSET_ARG (&aSet,pListItem,SfxBoolItem,SID_FAX_LIST,false); SFX_ITEMSET_ARG (&aSet,pPreviewItem,SfxBoolItem,SID_PREVIEWFLAG_TYPE,false); @@ -1058,7 +1058,7 @@ IMPL_LINK( SwStdFontTabPage, LoseFocusHdl, ComboBox*, pBox ) return 0; } -void SwStdFontTabPage::PageCreated (SfxAllItemSet aSet) +void SwStdFontTabPage::PageCreated( const SfxAllItemSet& aSet) { SFX_ITEMSET_ARG (&aSet,pFlagItem,SfxUInt16Item, SID_FONTMODE_TYPE, false); if (pFlagItem) @@ -1256,7 +1256,7 @@ IMPL_LINK_NOARG(SwTableOptionsTabPage, CheckBoxHdl) return 0; } -void SwTableOptionsTabPage::PageCreated (SfxAllItemSet aSet) +void SwTableOptionsTabPage::PageCreated( const SfxAllItemSet& aSet) { SFX_ITEMSET_ARG (&aSet,pWrtSh,SwWrtShellItem,SID_WRT_SHELL,false); if (pWrtSh) @@ -1334,7 +1334,7 @@ SfxTabPage* SwShdwCrsrOptionsTabPage::Create( Window* pParent, const SfxItemSet& return new SwShdwCrsrOptionsTabPage( pParent, rSet ); } -void SwShdwCrsrOptionsTabPage::PageCreated( SfxAllItemSet aSet ) +void SwShdwCrsrOptionsTabPage::PageCreated( const SfxAllItemSet& aSet ) { SFX_ITEMSET_ARG (&aSet,pWrtSh,SwWrtShellItem,SID_WRT_SHELL,false); if (pWrtSh) |