diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-02 11:33:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-02 13:15:33 +0100 |
commit | a0e136d2cbb3784ddfcbddcfed5d784c8e4c9a64 (patch) | |
tree | a86891188892c9525679a4a2a47ab772e7ccecbc /reportdesign/inc | |
parent | 4855257e52056241633c2b1d8159c3f0e71e05f3 (diff) |
loplugin:passstuffbyref improved return in sd,various
Change-Id: I4b6ea89ae2072f4389a696ea3c96d8f7a5731e7a
Reviewed-on: https://gerrit.libreoffice.org/47246
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'reportdesign/inc')
-rw-r--r-- | reportdesign/inc/reportformula.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
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 <code>getUndecoratedContent</code>, 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 <code>getUndecoratedContent</code>, 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(); |