sc/source/core/data/table3.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 877aa28e981349480844a995334367dd9c3ab72b Author: Luboš Luňák <l.lu...@collabora.com> AuthorDate: Thu Sep 9 16:18:02 2021 +0200 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Mon Sep 13 21:31:26 2021 +0200 do not intern a temporary cell error string Interning is way more work than a simple text comparison done once. Change-Id: If18c478fc62d1fb09ce2141fdb77b46a6bc46c08 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121855 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lu...@collabora.com> (cherry picked from commit d0316985db22efd6708dffa173eaabb430f6b9a8) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121985 Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx index 48c05bcaa40d..20e16b455c29 100644 --- a/sc/source/core/data/table3.cxx +++ b/sc/source/core/data/table3.cxx @@ -2433,8 +2433,8 @@ public: if (rCell.meType == CELLTYPE_FORMULA && rCell.mpFormula->GetErrCode() != FormulaError::NONE) { // Error cell is evaluated as string (for now). - const svl::SharedString aCellStr = mrStrPool.intern(ScGlobal::GetErrorString(rCell.mpFormula->GetErrCode())); - return compareByStringComparator(rEntry, rItem, &aCellStr, nullptr); + const OUString aCellStr = ScGlobal::GetErrorString(rCell.mpFormula->GetErrCode()); + return compareByStringComparator(rEntry, rItem, nullptr, &aCellStr); } else if (rCell.meType == CELLTYPE_STRING) {