diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-06-08 17:14:34 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-06-08 17:14:34 +0200 |
commit | 4d49c9601c9b3e26a336e08e057d299895683480 (patch) | |
tree | 469e3c18c2167db45cffec0a21a99abda8406c54 /lotuswordpro | |
parent | 46c7ecf760bbea6541507c319e8e722f9b4ec712 (diff) |
Let loplugin:passstuffbyref also look at fn defn not preceded by any decl
Change-Id: I752bc96d2d521d790e919283cabb14b6526626f4
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwplayout.cxx | 4 | ||||
-rw-r--r-- | lotuswordpro/source/filter/lwplayout.hxx | 12 |
2 files changed, 8 insertions, 8 deletions
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(); |