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

Noel Grandin noel.grandin at collabora.co.uk
Mon Nov 14 10:02:00 UTC 2016


 sd/source/ui/func/fusel.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 69581b948de89db188197bce3a55d7eb07229f8e
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date:   Mon Nov 14 12:01:22 2016 +0200

    warning C4701: potentially uninitialized local variable 'pPV' used
    
    Change-Id: Icaba0cbeff8edf4bf389cf001462f157830b7afd

diff --git a/sd/source/ui/func/fusel.cxx b/sd/source/ui/func/fusel.cxx
index b84a5fc..5bdc4e0 100644
--- a/sd/source/ui/func/fusel.cxx
+++ b/sd/source/ui/func/fusel.cxx
@@ -172,7 +172,6 @@ bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt)
         ******************************************************************/
         mpWindow->CaptureMouse();
         pHdl = mpView->PickHandle(aMDPos);
-        SdrPageView* pPV;
 
         long nAngle0  = GetAngle(aMDPos - mpView->GetRef1());
         nAngle0 -= 27000;
@@ -233,6 +232,7 @@ bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt)
         }
         else
         {
+            SdrPageView* pPV = nullptr;
             SdrObject* pObj = !rMEvt.IsMod2() ? mpView->PickObj(aMDPos, mpView->getHitTolLog(), pPV, SdrSearchOptions::PICKMACRO) : nullptr;
             if (pObj)
             {


More information about the Libreoffice-commits mailing list