summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/core/data/table3.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx
index 02c2619624b5..9c7417278658 100644
--- a/sc/source/core/data/table3.cxx
+++ b/sc/source/core/data/table3.cxx
@@ -2705,12 +2705,6 @@ public:
// Simple string matching i.e. no regexp match.
if (isTextMatchOp(rEntry))
{
- bool matchWholeCell = bMatchWholeCell;
- // When comparing for (in)equality, we can simply compare the whole cell
- // even when not explicitly asked, and that code is faster (it's simpler,
- // no SharedString temporary, etc.).
- if( rEntry.eOp == SC_EQUAL || rEntry.eOp == SC_NOT_EQUAL )
- matchWholeCell = true;
if (rItem.meType != ScQueryEntry::ByString && rItem.maString.isEmpty())
{
// #i18374# When used from functions (match, countif, sumif, vlookup, hlookup, lookup),
@@ -2720,7 +2714,7 @@ public:
if ( rEntry.eOp == SC_NOT_EQUAL )
bOk = !bOk;
}
- else if ( matchWholeCell )
+ else if ( bMatchWholeCell )
{
if (pValueSource1)
{
@@ -2758,7 +2752,7 @@ public:
sal_Int32 nStrPos;
if (!mbCaseSensitive)
- {
+ { // Common case for vlookup etc.
const svl::SharedString rSource(pValueSource1? *pValueSource1 : mrStrPool.intern(*pValueSource2));
const rtl_uString *pQuer = rItem.maString.getDataIgnoreCase();