sc/source/ui/view/prevloc.cxx | 2 -- 1 file changed, 2 deletions(-) New commits: commit 468ccb89e246744c740bc1efd5a33249d08dd1b2 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Mon Mar 28 17:29:37 2022 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Mon Mar 28 23:28:17 2022 +0200
-Werror,-Wunused-but-set-variable ...ever since 24da580f8bd0a348fee64c07f9015b09918f8388 "95584#; add RangeId to have the draw ranges unique" Change-Id: I60e98b9645eb4acb2d3d4e47ada81c976e43a424 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132235 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/sc/source/ui/view/prevloc.cxx b/sc/source/ui/view/prevloc.cxx index 67505e651483..1e2375ab5c07 100644 --- a/sc/source/ui/view/prevloc.cxx +++ b/sc/source/ui/view/prevloc.cxx @@ -428,14 +428,12 @@ tools::Rectangle ScPreviewLocationData::GetNoteInRangeOutputRect(const tools::Re { ScPreviewLocationType eType = bNoteMarks ? SC_PLOC_NOTEMARK : SC_PLOC_NOTETEXT; - sal_uLong nPos = 0; for (auto const& it : m_Entries) { if ( it->eType == eType && it->aPixelRect.Overlaps( rVisiblePixel ) ) { if ( aCellPos == it->aCellRange.aStart ) return it->aPixelRect; - ++nPos; } }