diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-23 16:10:25 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-23 19:35:04 +0200 |
commit | b23b1295af584162f95c1559a3d8f8bbe4824413 (patch) | |
tree | 8421b5260395a0590207766f01ada865552267c6 /include | |
parent | 09cd0e363d6c5b0e7b9cebc598030a7e3d397922 (diff) |
loplugin:returnconstval in svx
Change-Id: I501c341962e1d7e31f1466527b6e80f2294d79ed
Reviewed-on: https://gerrit.libreoffice.org/78017
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/framelink.hxx | 6 | ||||
-rw-r--r-- | include/svx/svdovirt.hxx | 2 | ||||
-rw-r--r-- | include/svx/txenctab.hxx | 2 | ||||
-rw-r--r-- | include/svx/unoshape.hxx | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/include/svx/framelink.hxx b/include/svx/framelink.hxx index fbcf1a5d1277..4c662700bec6 100644 --- a/include/svx/framelink.hxx +++ b/include/svx/framelink.hxx @@ -150,9 +150,9 @@ public: explicit Style( const editeng::SvxBorderLine* pBorder, double fScale ); RefMode GetRefMode() const { if(!maImplStyle) return RefMode::Centered; return maImplStyle->meRefMode; } - const Color GetColorPrim() const { if(!maImplStyle) return Color(); return maImplStyle->maColorPrim; } - const Color GetColorSecn() const { if(!maImplStyle) return Color(); return maImplStyle->maColorSecn; } - const Color GetColorGap() const { if(!maImplStyle) return Color(); return maImplStyle->maColorGap; } + Color GetColorPrim() const { if(!maImplStyle) return Color(); return maImplStyle->maColorPrim; } + Color GetColorSecn() const { if(!maImplStyle) return Color(); return maImplStyle->maColorSecn; } + Color GetColorGap() const { if(!maImplStyle) return Color(); return maImplStyle->maColorGap; } bool UseGapColor() const { if(!maImplStyle) return false; return maImplStyle->mbUseGapColor; } double Prim() const { if(!maImplStyle) return 0.0; return maImplStyle->mfPrim; } double Dist() const { if(!maImplStyle) return 0.0; return maImplStyle->mfDist; } diff --git a/include/svx/svdovirt.hxx b/include/svx/svdovirt.hxx index 7882d8db17d9..323cce9f18ba 100644 --- a/include/svx/svdovirt.hxx +++ b/include/svx/svdovirt.hxx @@ -142,7 +142,7 @@ public: virtual bool DoMacro (const SdrObjMacroHitRec& rRec) override; // #i73248# for default SdrVirtObj, offset is aAnchor, not (0,0) - virtual const Point GetOffset() const; + virtual Point GetOffset() const; }; #endif // INCLUDED_SVX_SVDOVIRT_HXX diff --git a/include/svx/txenctab.hxx b/include/svx/txenctab.hxx index 74a72372c896..cb9b7f0db0ad 100644 --- a/include/svx/txenctab.hxx +++ b/include/svx/txenctab.hxx @@ -27,7 +27,7 @@ class SVX_DLLPUBLIC SvxTextEncodingTable { public: - static const OUString GetTextString(const rtl_TextEncoding nEnc); + static OUString GetTextString(const rtl_TextEncoding nEnc); static rtl_TextEncoding GetTextEncoding(const OUString& rStr); }; diff --git a/include/svx/unoshape.hxx b/include/svx/unoshape.hxx index 8d522b3bcab7..062fd5eb6b1b 100644 --- a/include/svx/unoshape.hxx +++ b/include/svx/unoshape.hxx @@ -588,7 +588,7 @@ protected: void resetModifiedState(); - const SvGlobalName GetClassName_Impl(OUString& rHexCLSID); + SvGlobalName GetClassName_Impl(OUString& rHexCLSID); public: SvxOle2Shape(SdrObject* pObj); SvxOle2Shape(SdrObject* pObject, const SfxItemPropertyMapEntry* pPropertyMap, const SvxItemPropertySet* pPropertySet); |