From 4d49c9601c9b3e26a336e08e057d299895683480 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 8 Jun 2016 17:14:34 +0200 Subject: Let loplugin:passstuffbyref also look at fn defn not preceded by any decl Change-Id: I752bc96d2d521d790e919283cabb14b6526626f4 --- lotuswordpro/source/filter/lwplayout.cxx | 4 ++-- lotuswordpro/source/filter/lwplayout.hxx | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'lotuswordpro') diff --git a/lotuswordpro/source/filter/lwplayout.cxx b/lotuswordpro/source/filter/lwplayout.cxx index 23e1a19890e4..3845024bf401 100644 --- a/lotuswordpro/source/filter/lwplayout.cxx +++ b/lotuswordpro/source/filter/lwplayout.cxx @@ -711,7 +711,7 @@ bool LwpMiddleLayout::MarginsSameAsParent() * @descr: Get margin * @param: nWhichSide - 0: left, 1: right, 2:top, 3: bottom */ -double LwpMiddleLayout::MarginsValue(const sal_uInt8 &nWhichSide) +double LwpMiddleLayout::MarginsValue(sal_uInt8 nWhichSide) { double fValue = 0; if((nWhichSide==MARGIN_LEFT)||(nWhichSide==MARGIN_RIGHT)) @@ -751,7 +751,7 @@ double LwpMiddleLayout::MarginsValue(const sal_uInt8 &nWhichSide) * @param: * @return: */ -double LwpMiddleLayout::ExtMarginsValue(const sal_uInt8 &nWhichSide) +double LwpMiddleLayout::ExtMarginsValue(sal_uInt8 nWhichSide) { double fValue = 0; if(m_nOverrideFlag & OVER_MARGINS) diff --git a/lotuswordpro/source/filter/lwplayout.hxx b/lotuswordpro/source/filter/lwplayout.hxx index a4b211711154..3dd9a0fbe725 100644 --- a/lotuswordpro/source/filter/lwplayout.hxx +++ b/lotuswordpro/source/filter/lwplayout.hxx @@ -144,7 +144,7 @@ public: m_bGettingHasProtection = false; return bRet; } - double GetMarginsValue(const sal_uInt8& nWhichSide) + double GetMarginsValue(sal_uInt8 nWhichSide) { if (m_bGettingMarginsValue) throw std::runtime_error("recursion in layout"); @@ -153,7 +153,7 @@ public: m_bGettingMarginsValue = false; return fRet; } - double GetExtMarginsValue(const sal_uInt8& nWhichSide) + double GetExtMarginsValue(sal_uInt8 nWhichSide) { if (m_bGettingExtMarginsValue) throw std::runtime_error("recursion in layout"); @@ -214,8 +214,8 @@ protected: bool HasProtection(); virtual bool HonorProtection(); virtual bool IsProtected(); - virtual double MarginsValue(const sal_uInt8& /*nWhichSide*/){return 0;} - virtual double ExtMarginsValue(const sal_uInt8& /*nWhichSide*/){return 0;} + virtual double MarginsValue(sal_uInt8 /*nWhichSide*/){return 0;} + virtual double ExtMarginsValue(sal_uInt8 /*nWhichSide*/){return 0;} virtual bool MarginsSameAsParent(); protected: bool m_bGettingHonorProtection; @@ -387,8 +387,8 @@ public: protected: void Read() override; virtual bool MarginsSameAsParent() override; - virtual double MarginsValue(const sal_uInt8& nWhichSide) override; - virtual double ExtMarginsValue(const sal_uInt8& nWhichSide) override; + virtual double MarginsValue(sal_uInt8 nWhichSide) override; + virtual double ExtMarginsValue(sal_uInt8 nWhichSide) override; private: LwpObjectID m_BasedOnStyle; LwpLayoutGeometry* Geometry(); -- cgit