summaryrefslogtreecommitdiff
path: root/sc/source/core/inc/interpre.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2021-01-25 14:43:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-01-25 17:54:54 +0100
commitaa98ed61a7b1e50bcc4f64ceaea3bb0cda360bb4 (patch)
tree6dbb2acb28f34084275138afa6bbe047c960697c /sc/source/core/inc/interpre.hxx
parent46e525c36e62c7cb365f1a1f34373e726cfb49b7 (diff)
tdf#92456 improve VLOOKUP perf
shave 5% of the time here - ref-counting triggered by copying svl::SharedString is significant, so return by const& instead of by value Change-Id: Ic702632da45d75dddab33d6ce1e6f1097ff70de9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109900 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/core/inc/interpre.hxx')
-rw-r--r--sc/source/core/inc/interpre.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/inc/interpre.hxx b/sc/source/core/inc/interpre.hxx
index 18ed429aab99..f8e5f616053c 100644
--- a/sc/source/core/inc/interpre.hxx
+++ b/sc/source/core/inc/interpre.hxx
@@ -1025,7 +1025,7 @@ public:
FormulaError GetError() const { return nGlobalError; }
formula::StackVar GetResultType() const { return xResult->GetType(); }
- svl::SharedString GetStringResult() const;
+ const svl::SharedString & GetStringResult() const;
double GetNumResult() const { return xResult->GetDouble(); }
const formula::FormulaConstTokenRef& GetResultToken() const { return xResult; }
SvNumFormatType GetRetFormatType() const { return nRetFmtType; }