summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-07-26 12:00:36 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-07-27 09:27:44 +0200
commit7a937660201d48d5e94971aebd81ece98f529f57 (patch)
tree513970c994d8366d62c7905ca4eeb8db4577e01e /sc
parente41b7bc4cc2376b8fafeab0ef8fed388b0b9d7ae (diff)
Related: rhbz#1602589 silence coverity copy_paste_error
Change-Id: Idca4bfaaa9f127eae87ae879e2131aed747ce4b3 Reviewed-on: https://gerrit.libreoffice.org/58089 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/compiler.cxx1
-rw-r--r--sc/source/ui/view/viewdata.cxx2
2 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx
index b7e62c52e3df..5a9de437077e 100644
--- a/sc/source/core/tool/compiler.cxx
+++ b/sc/source/core/tool/compiler.cxx
@@ -5707,6 +5707,7 @@ bool ScCompiler::HandleTableRef()
default:
; // nothing
}
+ // coverity[copy_paste_error] - this is correct, aStart in both aDBRange uses
if (aColRange.aStart.Row() != aDBRange.aStart.Row() || aColRange.aEnd.Row() != aDBRange.aStart.Row())
aRange = ScRange( ScAddress::INITIALIZE_INVALID);
else
diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx
index 4f0ccf24f0b3..1d215f1a2908 100644
--- a/sc/source/ui/view/viewdata.cxx
+++ b/sc/source/ui/view/viewdata.cxx
@@ -178,6 +178,7 @@ ScPositionHelper::getNearestByIndex(index_type nIndex) const
}
auto posLB = std::prev(posUB);
+ // coverity[copy_paste_error] - posUB is correct
if (posUB == mData.end())
{
return *posLB;
@@ -208,6 +209,7 @@ ScPositionHelper::getNearestByPosition(long nPos) const
}
auto posLB = std::prev(posUB);
+ // coverity[copy_paste_error] - posUB is correct
if (posUB == mData.end())
{
return *posLB;