Related: tdf#127293 Fix typo for function XLOOKUP

Wrong isStringSearch value for VectorSearchArguments
at svExternalSingleRef argument.
Also more clean-up.

Change-Id: Idc5a953638b90704586754d07f5096d7b5615e17
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163736
Tested-by: Jenkins
Reviewed-by: Sahil Gautam <me.sahilgautam@gmail.com>
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index c33e74ba..5b04dca 100644
--- a/sc/source/core/tool/interpr1.cxx
+++ b/sc/source/core/tool/interpr1.cxx
@@ -8011,7 +8011,7 @@ void ScInterpreter::ScXLookup()
                }
                else
                {
                    vsa.isStringSearch = false;
                    vsa.isStringSearch = true;
                    vsa.sSearchStr = pToken->GetString();
                }
            }
@@ -10894,10 +10894,8 @@ bool ScInterpreter::SearchVectorForValue( VectorSearchArguments& vsa )
    rParam.nTab  = vsa.nTab1;

    ScQueryEntry& rEntry = rParam.GetEntry(0);
    rEntry = rParam.GetEntry(0);
    rEntry.nField = vsa.eSearchMode != searchrev ? vsa.nCol1 : vsa.nCol2;
    rEntry.bDoQuery = true;
    ScQueryEntry::Item& rItem = rEntry.GetQueryItem();
    switch ( vsa.eMatchMode )
    {
        case exactorNA :
@@ -10943,6 +10941,8 @@ bool ScInterpreter::SearchVectorForValue( VectorSearchArguments& vsa )
            PushIllegalParameter();
            return false;
    }

    ScQueryEntry::Item& rItem = rEntry.GetQueryItem();
    if ( vsa.isStringSearch )
    {
        rItem.meType   = ScQueryEntry::ByString;