summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-11-24 16:42:12 +0000
committerEike Rathke <erack@redhat.com>2017-11-25 14:49:44 +0100
commit644f1451abf66085717feafdfd40012b14e722a4 (patch)
tree5e16f0bf5b332cfa66421e4b0ba78b15fb6a4907 /sc
parentff92dc75a7d8c5981503eebac84ceaf33e36845b (diff)
coverity#1422232 Improper use of negative value
Change-Id: I79b24e175906ca5552f45b6af472c436ffde5fe3 Reviewed-on: https://gerrit.libreoffice.org/45247 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/unoobj/chart2uno.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx
index ffea02a88546..71c3c96f83c0 100644
--- a/sc/source/ui/unoobj/chart2uno.cxx
+++ b/sc/source/ui/unoobj/chart2uno.cxx
@@ -752,7 +752,7 @@ void Chart2Positioner::createPositionMap()
else
pCol = it->second;
- sal_uInt32 nInsRow = static_cast<sal_uInt32>(bNoGlue ? nNoGlueRow : nRow1);
+ auto nInsRow = bNoGlue ? nNoGlueRow : nRow1;
for (SCROW nRow = nRow1; nRow <= nRow2; ++nRow, ++nInsRow)
{
ScSingleRefData aCellData;