From 6cd7bf2043146a630925a2e49336f02c802f707a Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 10 Nov 2015 10:25:28 +0100 Subject: loplugin:nullptr (automatic rewrite) Change-Id: I71682f28c6a54d33da6b0c971f34d0a705ff04f5 --- svx/source/svdraw/svdpoev.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'svx/source/svdraw/svdpoev.cxx') diff --git a/svx/source/svdraw/svdpoev.cxx b/svx/source/svdraw/svdpoev.cxx index e7bc02ccec3c..da20cab33767 100644 --- a/svx/source/svdraw/svdpoev.cxx +++ b/svx/source/svdraw/svdpoev.cxx @@ -548,9 +548,9 @@ void SdrPolyEditView::ImpTransformMarkedPoints(PPolyTrFunc pTrFunc, const void* SdrMark* pM=GetSdrMarkByIndex(nm); SdrObject* pObj=pM->GetMarkedSdrObj(); const SdrUShortCont* pPts=pM->GetMarkedPoints(); - sal_uIntPtr nPointCount=pPts==NULL ? 0 : pPts->size(); + sal_uIntPtr nPointCount=pPts==nullptr ? 0 : pPts->size(); SdrPathObj* pPath=dynamic_cast( pObj ); - if (nPointCount!=0 && pPath!=NULL) + if (nPointCount!=0 && pPath!=nullptr) { if( bUndo ) AddUndo(GetModel()->GetSdrUndoFactory().CreateUndoGeoObject(*pObj)); @@ -616,8 +616,8 @@ void SdrPolyEditView::ImpTransformMarkedPoints(PPolyTrFunc pTrFunc, const void* static void ImpMove(Point& rPt, Point* pC1, Point* pC2, const void* p1, const void* /*p2*/, const void* /*p3*/, const void* /*p4*/, const void* /*p5*/) { MovePoint(rPt,*static_cast(p1)); - if (pC1!=NULL) MovePoint(*pC1,*static_cast(p1)); - if (pC2!=NULL) MovePoint(*pC2,*static_cast(p1)); + if (pC1!=nullptr) MovePoint(*pC1,*static_cast(p1)); + if (pC2!=nullptr) MovePoint(*pC2,*static_cast(p1)); } void SdrPolyEditView::MoveMarkedPoints(const Size& rSiz) @@ -633,8 +633,8 @@ void SdrPolyEditView::MoveMarkedPoints(const Size& rSiz) static void ImpResize(Point& rPt, Point* pC1, Point* pC2, const void* p1, const void* p2, const void* p3, const void* /*p4*/, const void* /*p5*/) { ResizePoint(rPt,*static_cast(p1),*static_cast(p2),*static_cast(p3)); - if (pC1!=NULL) ResizePoint(*pC1,*static_cast(p1),*static_cast(p2),*static_cast(p3)); - if (pC2!=NULL) ResizePoint(*pC2,*static_cast(p1),*static_cast(p2),*static_cast(p3)); + if (pC1!=nullptr) ResizePoint(*pC1,*static_cast(p1),*static_cast(p2),*static_cast(p3)); + if (pC2!=nullptr) ResizePoint(*pC2,*static_cast(p1),*static_cast(p2),*static_cast(p3)); } void SdrPolyEditView::ResizeMarkedPoints(const Point& rRef, const Fraction& xFact, const Fraction& yFact) @@ -650,8 +650,8 @@ void SdrPolyEditView::ResizeMarkedPoints(const Point& rRef, const Fraction& xFac static void ImpRotate(Point& rPt, Point* pC1, Point* pC2, const void* p1, const void* /*p2*/, const void* p3, const void* p4, const void* /*p5*/) { RotatePoint(rPt,*static_cast(p1),*static_cast(p3),*static_cast(p4)); - if (pC1!=NULL) RotatePoint(*pC1,*static_cast(p1),*static_cast(p3),*static_cast(p4)); - if (pC2!=NULL) RotatePoint(*pC2,*static_cast(p1),*static_cast(p3),*static_cast(p4)); + if (pC1!=nullptr) RotatePoint(*pC1,*static_cast(p1),*static_cast(p3),*static_cast(p4)); + if (pC2!=nullptr) RotatePoint(*pC2,*static_cast(p1),*static_cast(p3),*static_cast(p4)); } void SdrPolyEditView::RotateMarkedPoints(const Point& rRef, long nAngle) -- cgit