Kaydet (Commit) 63d1b025 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

coverity: variable values is unused

Change-Id: Id2cd10aa34d96629915a3258a20f928af441ebcc
üst 7e113c84
...@@ -127,13 +127,12 @@ void ScViewFunc::MarkAndJumpToRanges(const ScRangeList& rRanges) ...@@ -127,13 +127,12 @@ void ScViewFunc::MarkAndJumpToRanges(const ScRangeList& rRanges)
ScDocShell* pDocSh = pView->GetDocShell(); ScDocShell* pDocSh = pView->GetDocShell();
ScRangeList aRanges(rRanges); ScRangeList aRanges(rRanges);
ScRange* p = aRanges.front();
ScRangeList aRangesToMark; ScRangeList aRangesToMark;
ScAddress aCurPos = pView->GetCurPos(); ScAddress aCurPos = pView->GetCurPos();
size_t ListSize = aRanges.size(); size_t ListSize = aRanges.size();
for ( size_t i = 0; i < ListSize; ++i ) for ( size_t i = 0; i < ListSize; ++i )
{ {
p = aRanges[i]; const ScRange* p = aRanges[i];
// Collect only those ranges that are on the same sheet as the current // Collect only those ranges that are on the same sheet as the current
// cursor. // cursor.
if (p->aStart.Tab() == aCurPos.Tab()) if (p->aStart.Tab() == aCurPos.Tab())
...@@ -144,7 +143,7 @@ void ScViewFunc::MarkAndJumpToRanges(const ScRangeList& rRanges) ...@@ -144,7 +143,7 @@ void ScViewFunc::MarkAndJumpToRanges(const ScRangeList& rRanges)
return; return;
// Jump to the first range of all precedent ranges. // Jump to the first range of all precedent ranges.
p = aRangesToMark.front(); const ScRange* p = aRangesToMark.front();
lcl_jumpToRange(*p, pView, pDocSh->GetDocument()); lcl_jumpToRange(*p, pView, pDocSh->GetDocument());
ListSize = aRangesToMark.size(); ListSize = aRangesToMark.size();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment