summaryrefslogtreecommitdiff
path: root/include/svl
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 /include/svl
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 'include/svl')
-rw-r--r--include/svl/sharedstring.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/svl/sharedstring.hxx b/include/svl/sharedstring.hxx
index 71aad67ba2c6..f74824adeec2 100644
--- a/include/svl/sharedstring.hxx
+++ b/include/svl/sharedstring.hxx
@@ -21,7 +21,7 @@ class SVL_DLLPUBLIC SharedString
rtl_uString* mpDataIgnoreCase;
public:
- static SharedString getEmptyString();
+ static const SharedString & getEmptyString();
SharedString();
SharedString( rtl_uString* pData, rtl_uString* pDataIgnoreCase );