From 644f1451abf66085717feafdfd40012b14e722a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Fri, 24 Nov 2017 16:42:12 +0000 Subject: [PATCH] coverity#1422232 Improper use of negative value Change-Id: I79b24e175906ca5552f45b6af472c436ffde5fe3 Reviewed-on: https://gerrit.libreoffice.org/45247 Tested-by: Jenkins Reviewed-by: Eike Rathke --- sc/source/ui/unoobj/chart2uno.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(bNoGlue ? nNoGlueRow : nRow1); + auto nInsRow = bNoGlue ? nNoGlueRow : nRow1; for (SCROW nRow = nRow1; nRow <= nRow2; ++nRow, ++nInsRow) { ScSingleRefData aCellData;