summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-08-18 12:28:31 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-08-18 18:19:09 +0200
commit4dbe4a9313d9844c10f71b29a77218d31bc6f3b3 (patch)
treecaf0ca4ceb3cbbb2aaf1255cebbcb8b38d6d45c5 /sc
parent9e1aee666fa48b768c829bbc707f47a98250df1e (diff)
loplugin:passstuffbyref
Change-Id: I4f01eb3842ef198f02af274f54afb2760c820a4b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120655 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/interpr6.cxx4
-rw-r--r--sc/source/filter/excel/xeescher.cxx2
-rw-r--r--sc/source/filter/inc/xeescher.hxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/core/tool/interpr6.cxx b/sc/source/core/tool/interpr6.cxx
index 1c7ed73d5c93..a291b444ecdc 100644
--- a/sc/source/core/tool/interpr6.cxx
+++ b/sc/source/core/tool/interpr6.cxx
@@ -261,7 +261,7 @@ public:
}
FormulaError getError() const { return mnError; }
- KahanSum getResult() const { return maSum; }
+ const KahanSum& getResult() const { return maSum; }
};
class NumericCellCounter
@@ -369,7 +369,7 @@ public:
};
FormulaError getError() const { return mnError; }
- KahanSum getSum() const { return mfSum; }
+ const KahanSum& getSum() const { return mfSum; }
sal_uInt32 getNumberFormat() const { return mnNumFmt; }
};
diff --git a/sc/source/filter/excel/xeescher.cxx b/sc/source/filter/excel/xeescher.cxx
index 144782ddbbc1..f81f35b13f78 100644
--- a/sc/source/filter/excel/xeescher.cxx
+++ b/sc/source/filter/excel/xeescher.cxx
@@ -1807,7 +1807,7 @@ void XclMacroHelper::WriteMacroSubRec( XclExpStream& rStrm )
WriteFormulaSubRec( rStrm, EXC_ID_OBJMACRO, *mxMacroLink );
}
-OUString XclMacroHelper::GetMacroName() const { return maMacroName; }
+const OUString& XclMacroHelper::GetMacroName() const { return maMacroName; }
bool
XclMacroHelper::SetMacroLink( const ScriptEventDescriptor& rEvent, const XclTbxEventType& nEventType )
diff --git a/sc/source/filter/inc/xeescher.hxx b/sc/source/filter/inc/xeescher.hxx
index 6ffc5d3bf1ab..f0be1425d76e 100644
--- a/sc/source/filter/inc/xeescher.hxx
+++ b/sc/source/filter/inc/xeescher.hxx
@@ -208,7 +208,7 @@ public:
/** Sets the name of a macro
@return true = The passed macro name has been found. */
bool SetMacroLink( const OUString& rMacro );
- OUString GetMacroName() const;
+ const OUString& GetMacroName() const;
};
class XclExpShapeObj : public XclObjAny, public XclMacroHelper