diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-03-12 10:53:05 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-03-12 11:51:17 +0000 |
commit | c91c210188f202fadbeb04ca3e0a83b177b00062 (patch) | |
tree | 25825c08365333b7bae495dc0364dedc01ec0ee4 | |
parent | 686651c30a9697463c9910f71736abe607efb270 (diff) |
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>
-rw-r--r-- | chart2/source/view/charttypes/PieChart.cxx | 4 |
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) |