summaryrefslogtreecommitdiffstats
path: root/chart2
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2017-03-12 10:53:05 +0100
committerJulien Nabet <serval2412@yahoo.fr>2017-03-12 11:51:17 +0000
commitc91c210188f202fadbeb04ca3e0a83b177b00062 (patch)
tree25825c08365333b7bae495dc0364dedc01ec0ee4 /chart2
parentCombine List Item & Grid Item Adapters of File Explorer View (diff)
downloadcore-c91c210188f202fadbeb04ca3e0a83b177b00062.tar.gz
core-c91c210188f202fadbeb04ca3e0a83b177b00062.zip
cppcheck: unsignedLessThanZero
Change-Id: I5c41c06f9bfa6c23a6984d2f7f5b118a13065da9 Reviewed-on: https://gerrit.libreoffice.org/35088 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/charttypes/PieChart.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/view/charttypes/PieChart.cxx b/chart2/source/view/charttypes/PieChart.cxx
index a80692391fd5..f737a943e7de 100644
--- a/chart2/source/view/charttypes/PieChart.cxx
+++ b/chart2/source/view/charttypes/PieChart.cxx
@@ -394,7 +394,7 @@ double PieChart::getMaxOffset()
return m_fMaxOffset;
const std::vector< VDataSeries* >& rSeriesList( m_aZSlots[0][0].m_aSeriesVector );
- if( rSeriesList.size()<=0 )
+ if(!rSeriesList.size())
return m_fMaxOffset;
VDataSeries* pSeries = rSeriesList[0];
@@ -552,7 +552,7 @@ void PieChart::createShapes()
ShapeParam aParam;
std::vector< VDataSeries* >* pSeriesList = &(aXSlotIter->m_aSeriesVector);
- if( pSeriesList->size()<=0 )//there should be only one series in each x slot
+ if(!pSeriesList->size())//there should be only one series in each x slot
continue;
VDataSeries* pSeries = (*pSeriesList)[0];
if(!pSeries)