summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-05-19 10:02:29 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-05-20 11:17:22 +0200
commit8d54796bf152499ecbe61788be64c9035f725dfa (patch)
tree9516219cf8e60bdd46597e522ca4e9fde9b8f407 /sd
parente4740dbecfce958c2c707d8cc92e6dbe52f4b71b (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 'sd')
-rw-r--r--sd/source/ui/dlg/prntopts.cxx2
-rw-r--r--sd/source/ui/dlg/tpoption.cxx2
-rw-r--r--sd/source/ui/inc/prntopts.hxx4
-rw-r--r--sd/source/ui/inc/tpoption.hxx2
4 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/ui/dlg/prntopts.cxx b/sd/source/ui/dlg/prntopts.cxx
index 50b41a220852..eaf7233563a7 100644
--- a/sd/source/ui/dlg/prntopts.cxx
+++ b/sd/source/ui/dlg/prntopts.cxx
@@ -235,7 +235,7 @@ void SdPrintOptions::SetDrawMode()
}
}
-void SdPrintOptions::PageCreated (SfxAllItemSet
+void SdPrintOptions::PageCreated (const SfxAllItemSet&
#ifdef MACOSX
aSet
#endif
diff --git a/sd/source/ui/dlg/tpoption.cxx b/sd/source/ui/dlg/tpoption.cxx
index c8775db4fbd5..bf80be0d46da 100644
--- a/sd/source/ui/dlg/tpoption.cxx
+++ b/sd/source/ui/dlg/tpoption.cxx
@@ -649,7 +649,7 @@ void SdTpOptionsMisc::UpdateCompatibilityControls (void)
m_pCbxUsePrinterMetrics->Enable (bIsEnabled);
}
-void SdTpOptionsMisc::PageCreated (SfxAllItemSet aSet)
+void SdTpOptionsMisc::PageCreated(const SfxAllItemSet& aSet)
{
SFX_ITEMSET_ARG (&aSet,pFlagItem,SfxUInt32Item,SID_SDMODE_FLAG,false);
if (pFlagItem)
diff --git a/sd/source/ui/inc/prntopts.hxx b/sd/source/ui/inc/prntopts.hxx
index 17ec12f4b3cf..0de3e9c62ca5 100644
--- a/sd/source/ui/inc/prntopts.hxx
+++ b/sd/source/ui/inc/prntopts.hxx
@@ -69,8 +69,8 @@ public:
virtual bool FillItemSet( SfxItemSet& ) SAL_OVERRIDE;
virtual void Reset( const SfxItemSet & ) SAL_OVERRIDE;
- void SetDrawMode();
- virtual void PageCreated (SfxAllItemSet aSet) SAL_OVERRIDE;
+ void SetDrawMode();
+ virtual void PageCreated(const SfxAllItemSet& aSet) SAL_OVERRIDE;
};
diff --git a/sd/source/ui/inc/tpoption.hxx b/sd/source/ui/inc/tpoption.hxx
index f2ede261aeb8..cfc9d9ebbb0d 100644
--- a/sd/source/ui/inc/tpoption.hxx
+++ b/sd/source/ui/inc/tpoption.hxx
@@ -149,7 +149,7 @@ public:
<member>SetDrawMode()</member> method more than once.
*/
void SetImpressMode (void);
- virtual void PageCreated (SfxAllItemSet aSet) SAL_OVERRIDE;
+ virtual void PageCreated(const SfxAllItemSet& aSet) SAL_OVERRIDE;
using TabPage::ActivatePage;
using TabPage::DeactivatePage;