sw/source/uibase/uiview/viewsrch.cxx | 2 -- 1 file changed, 2 deletions(-)
New commits: commit 97bf901e36f139ba16deb006ea293c20bcd8240e Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Tue Oct 26 12:29:23 2021 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Tue Oct 26 14:39:18 2021 +0200 -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.gran...@collabora.co.uk> 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;