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

Stephan Bergmann sbergman at redhat.com
Fri Dec 5 08:55:38 PST 2014


 sd/source/ui/func/fudraw.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit cf6445c16a8fe7e8fb43a7ffdc4fbcdd753209bb
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Dec 5 17:55:01 2014 +0100

    loplugin:cstylecast, involving pointer to incomplete type
    
    Change-Id: I343572353b80eab8e6a2e4dacba0c4880048f380

diff --git a/sd/source/ui/func/fudraw.cxx b/sd/source/ui/func/fudraw.cxx
index e5e327a..e375341 100644
--- a/sd/source/ui/func/fudraw.cxx
+++ b/sd/source/ui/func/fudraw.cxx
@@ -23,6 +23,7 @@
 
 #include <editeng/flditem.hxx>
 #include <svx/svdogrp.hxx>
+#include <svx/svdoole2.hxx>
 #include <tools/urlobj.hxx>
 #include <vcl/help.hxx>
 #include <svx/bmpmask.hxx>
@@ -720,7 +721,7 @@ void FuDraw::DoubleClick(const MouseEvent& rMEvt)
                     /**********************************************************
                     * activate OLE-object
                     **********************************************************/
-                    mpViewShell->ActivateObject( (SdrOle2Obj*) pObj, 0);
+                    mpViewShell->ActivateObject( static_cast<SdrOle2Obj*>(pObj), 0);
                 }
             }
             else if (nInv == SdrInventor &&  nSdrObjKind == OBJ_GRAF && pObj->IsEmptyPresObj() )


More information about the Libreoffice-commits mailing list