summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uiview/viewsrch.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-10-26 12:29:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-10-26 14:39:18 +0200
commit97bf901e36f139ba16deb006ea293c20bcd8240e (patch)
treed549d4e78b95ad6739446fe86424865e418a868e /sw/source/uibase/uiview/viewsrch.cxx
parent48f6af631887a73ea93afeb5995aefeb7a91cd13 (diff)
-Wunused-but-set-variable
sw/source/uibase/uiview/viewsrch.cxx:97:13: error: variable 'textSelection' set but not used Change-Id: I67a37e9440343a34147dd5be82cfc3dfb1282419 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124184 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/uiview/viewsrch.cxx')
-rw-r--r--sw/source/uibase/uiview/viewsrch.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/sw/source/uibase/uiview/viewsrch.cxx b/sw/source/uibase/uiview/viewsrch.cxx
index d2e1731bbc91..df8a78d60f22 100644
--- a/sw/source/uibase/uiview/viewsrch.cxx
+++ b/sw/source/uibase/uiview/viewsrch.cxx
@@ -94,7 +94,6 @@ static void lcl_emitSearchResultCallbacks(SvxSearchItem const * pSearchItem, SwW
return;
std::vector<OString> aMatches;
- OString textSelection;
for (SwPaM& rPaM : pPaM->GetRingContainer())
{
if (SwShellCursor* pShellCursor = dynamic_cast<SwShellCursor*>(&rPaM))
@@ -110,7 +109,6 @@ static void lcl_emitSearchResultCallbacks(SvxSearchItem const * pSearchItem, SwW
}
OString sRect = comphelper::string::join("; ", aRect);
aMatches.push_back(sRect);
- textSelection = sRect;
}
}
boost::property_tree::ptree aTree;