[Libreoffice-commits] .: chart2/source

Julien Nabet serval2412 at kemper.freedesktop.org
Sat Jan 14 03:34:17 PST 2012


 chart2/source/view/main/ChartView.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c447d9ba8c7d40670c59a9ec9d45f32a36c1efcd
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sat Jan 14 12:33:24 2012 +0100

    Some cppcheck cleaning

diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx
index 3e5df18..1750879 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();


More information about the Libreoffice-commits mailing list