From a0e136d2cbb3784ddfcbddcfed5d784c8e4c9a64 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 2 Jan 2018 11:33:15 +0200 Subject: loplugin:passstuffbyref improved return in sd,various Change-Id: I4b6ea89ae2072f4389a696ea3c96d8f7a5731e7a Reviewed-on: https://gerrit.libreoffice.org/47246 Tested-by: Jenkins Reviewed-by: Noel Grandin --- reportdesign/inc/reportformula.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'reportdesign/inc') diff --git a/reportdesign/inc/reportformula.hxx b/reportdesign/inc/reportformula.hxx index 7d10243aee86..5e5976a075b9 100644 --- a/reportdesign/inc/reportformula.hxx +++ b/reportdesign/inc/reportformula.hxx @@ -77,7 +77,7 @@ namespace rptui const OUString& getUndecoratedContent() const { return m_sUndecoratedContent; } /// convenience alias for getUndecoratedContent, which asserts (in a non-product build) when used on an expression - inline OUString getFieldName() const; + inline OUString const & getFieldName() const; /** @returns "=" + getFieldName() @@ -85,7 +85,7 @@ namespace rptui OUString getEqualUndecoratedContent() const; /// convenience alias for getUndecoratedContent, which asserts (in a non-product build) when used on a field - inline OUString getExpression() const; + inline OUString const & getExpression() const; /** returns a bracketed field name of the formula denotes a field reference, or the undecorated expression if the formula denotes an expression. @@ -100,14 +100,14 @@ namespace rptui }; - inline OUString ReportFormula::getFieldName() const + inline OUString const & ReportFormula::getFieldName() const { OSL_PRECOND( getType() == Field, "ReportFormula::getFieldName: not bound to a field!" ); return getUndecoratedContent(); } - inline OUString ReportFormula::getExpression() const + inline OUString const & ReportFormula::getExpression() const { OSL_PRECOND( getType() == Expression, "ReportFormula::getExpression: not bound to an expression!" ); return getUndecoratedContent(); -- cgit