From 2796d979fad388b32c466b8fb6d3dce8b5bdf31d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 6 Nov 2024 13:38:38 +0200 Subject: loplugin:passstuffbyref in editeng Change-Id: I015616d7a008692b63586cd5d2ae9cc5586ead4b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176135 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/editeng/CustomPropertyField.hxx | 2 +- include/editeng/editeng.hxx | 2 +- include/editeng/outliner.hxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'include/editeng') diff --git a/include/editeng/CustomPropertyField.hxx b/include/editeng/CustomPropertyField.hxx index 38f3119a04fa..9608ccb9c8bb 100644 --- a/include/editeng/CustomPropertyField.hxx +++ b/include/editeng/CustomPropertyField.hxx @@ -41,7 +41,7 @@ public: virtual MetaAction* createBeginComment() const override; - OUString GetFormatted(css::uno::Reference const & xDocumentProperties); + const OUString & GetFormatted(css::uno::Reference const & xDocumentProperties); OUString const & GetName() const { diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx index 1fa3d17409cd..f78aefc5cffa 100644 --- a/include/editeng/editeng.hxx +++ b/include/editeng/editeng.hxx @@ -416,7 +416,7 @@ public: SAL_DLLPRIVATE void QuickMarkToBeRepainted( sal_Int32 nPara ); void setScalingParameters(ScalingParameters const& rScalingParameters); - ScalingParameters getScalingParameters() const; + const ScalingParameters & getScalingParameters() const; SAL_DLLPRIVATE void setRoundFontSizeToPt(bool bRound); diff --git a/include/editeng/outliner.hxx b/include/editeng/outliner.hxx index 8c69eaf77719..2e3670a74617 100644 --- a/include/editeng/outliner.hxx +++ b/include/editeng/outliner.hxx @@ -924,7 +924,7 @@ public: bool IsTextPos( const Point& rPaperPos, sal_uInt16 nBorder ); SAL_DLLPRIVATE bool IsTextPos( const Point& rPaperPos, sal_uInt16 nBorder, bool* pbBulletPos ); - ScalingParameters getScalingParameters() const; + const ScalingParameters & getScalingParameters() const; void setScalingParameters(ScalingParameters const& rScalingParameters); void resetScalingParameters() { -- cgit