From 97bf901e36f139ba16deb006ea293c20bcd8240e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 26 Oct 2021 12:29:23 +0200 Subject: -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 --- sw/source/uibase/uiview/viewsrch.cxx | 2 -- 1 file changed, 2 deletions(-) (limited to 'sw/source/uibase/uiview/viewsrch.cxx') 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 aMatches; - OString textSelection; for (SwPaM& rPaM : pPaM->GetRingContainer()) { if (SwShellCursor* pShellCursor = dynamic_cast(&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; -- cgit