summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2012-01-14 12:33:24 +0100
committerJulien Nabet <serval2412@yahoo.fr>2012-01-14 12:33:46 +0100
commitc447d9ba8c7d40670c59a9ec9d45f32a36c1efcd (patch)
tree5e1325849cef93b42d6ae9bb12c6560c956d810b
parentfix for gcc 4.7: unable to find string literal operator (diff)
downloadcore-c447d9ba8c7d40670c59a9ec9d45f32a36c1efcd.tar.gz
core-c447d9ba8c7d40670c59a9ec9d45f32a36c1efcd.zip
Some cppcheck cleaning
-rw-r--r--chart2/source/view/main/ChartView.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx
index 3e5df1871b72..1750879eaef0 100644
--- a/chart2/source/view/main/ChartView.cxx
+++ b/chart2/source/view/main/ChartView.cxx
@@ -1428,7 +1428,7 @@ awt::Rectangle ChartView::impl_createDiagramAndContent( SeriesPlotterContainer&
//use first coosys only so far; todo: calculate for more than one coosys if we have more in future
//todo: this is just a workaround at the moment for pie and donut labels
bool bIsPieOrDonut = lcl_IsPieOrDonut(xDiagram);
- if( !bIsPieOrDonut && rVCooSysList.size() > 0 )
+ if( !bIsPieOrDonut && (!rVCooSysList.empty()) )
{
VCoordinateSystem* pVCooSys = rVCooSysList[0];
pVCooSys->createMaximumAxesLabels();