sc/source/ui/view/gridwin.cxx | 2 -- 1 file changed, 2 deletions(-) New commits: commit e199f252ed50a02a935108da2da9947ccd08355d Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Mon Mar 28 17:27:06 2022 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Mon Mar 28 23:29:26 2022 +0200
-Werror,-Wunused-but-set-variable ...since df50b02cd3177570bb26484a03273ba5caa50037 "weld ScFilterListBox" Change-Id: I02e835bb9de373fea7891babbce5eec605455198 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132234 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index da788bc9aa5b..6ce6a6d6c421 100644 --- a/sc/source/ui/view/gridwin.cxx +++ b/sc/source/ui/view/gridwin.cxx @@ -1344,7 +1344,6 @@ void ScGridWindow::DoScenarioMenu( const ScRange& rScenRange ) OUString aCurrent; OUString aTabName; SCTAB nTabCount = rDoc.GetTableCount(); - SCTAB nEntryCount = 0; for (SCTAB i=nTab+1; i<nTabCount && rDoc.IsScenario(i); i++) { if (rDoc.HasScenarioRange( i, rScenRange )) @@ -1353,7 +1352,6 @@ void ScGridWindow::DoScenarioMenu( const ScRange& rScenRange ) rFilterBox.append_text(aTabName); if (rDoc.IsActiveScenario(i)) aCurrent = aTabName; - ++nEntryCount; } } rFilterBox.thaw();