[Libreoffice-commits] core.git: canvas/source

Noel Grandin noel at peralex.com
Wed Nov 25 23:18:30 PST 2015


 canvas/source/cairo/cairo_canvashelper.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3d8a01b0c85ee7c573f5da3fb51e3a0d654ae2cd
Author: Noel Grandin <noel at peralex.com>
Date:   Thu Nov 26 09:17:21 2015 +0200

    expression result unused [-Werror,-Wunused-value]
    
    Change-Id: I57b44c1997ac286fcb4caf8e3027e3b5996fc377

diff --git a/canvas/source/cairo/cairo_canvashelper.cxx b/canvas/source/cairo/cairo_canvashelper.cxx
index af94c38..b516db0 100644
--- a/canvas/source/cairo/cairo_canvashelper.cxx
+++ b/canvas/source/cairo/cairo_canvashelper.cxx
@@ -1513,7 +1513,7 @@ namespace cairocanvas
     geometry::IntegerSize2D CanvasHelper::getSize()
     {
         if( !mpSurfaceProvider )
-            geometry::IntegerSize2D(1, 1); // we're disposed
+            return geometry::IntegerSize2D(1, 1); // we're disposed
 
         return ::basegfx::unotools::integerSize2DFromB2ISize( maSize );
     }


More information about the Libreoffice-commits mailing list