summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/viewfun6.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-02-16 17:24:10 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-02-16 21:32:24 +0100
commit63d1b025ca4abf84ada60f614e5f7bb5a7da2071 (patch)
treefe8aae4e1fe1f9adfa9ae5b3b5cb19f1e0af4f51 /sc/source/ui/view/viewfun6.cxx
parent7e113c8481056bdbafed86634be7aa9c1febd299 (diff)
coverity: variable values is unused
Change-Id: Id2cd10aa34d96629915a3258a20f928af441ebcc
Diffstat (limited to 'sc/source/ui/view/viewfun6.cxx')
-rw-r--r--sc/source/ui/view/viewfun6.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/ui/view/viewfun6.cxx b/sc/source/ui/view/viewfun6.cxx
index 86b04f63ffbe..2a5f693bdfb5 100644
--- a/sc/source/ui/view/viewfun6.cxx
+++ b/sc/source/ui/view/viewfun6.cxx
@@ -127,13 +127,12 @@ void ScViewFunc::MarkAndJumpToRanges(const ScRangeList& rRanges)
ScDocShell* pDocSh = pView->GetDocShell();
ScRangeList aRanges(rRanges);
- ScRange* p = aRanges.front();
ScRangeList aRangesToMark;
ScAddress aCurPos = pView->GetCurPos();
size_t ListSize = aRanges.size();
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
// cursor.
if (p->aStart.Tab() == aCurPos.Tab())
@@ -144,7 +143,7 @@ void ScViewFunc::MarkAndJumpToRanges(const ScRangeList& rRanges)
return;
// Jump to the first range of all precedent ranges.
- p = aRangesToMark.front();
+ const ScRange* p = aRangesToMark.front();
lcl_jumpToRange(*p, pView, pDocSh->GetDocument());
ListSize = aRangesToMark.size();