diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:23:02 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:38 +0100 |
commit | 92c697c0e3e4bde88424322875c993c161696b1e (patch) | |
tree | ea1be62a0cb8fd7f7e63dd03a52441cedd8e96eb /sd/source/ui/view/drbezob.cxx | |
parent | 65464ed0985802edb96dbcbd1c3eed996f3778bd (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: If1b80da64ba575f07b31dce9bc0e34b7eb9f11a4
Diffstat (limited to 'sd/source/ui/view/drbezob.cxx')
-rw-r--r-- | sd/source/ui/view/drbezob.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sd/source/ui/view/drbezob.cxx b/sd/source/ui/view/drbezob.cxx index 24c141789627..543a674a7870 100644 --- a/sd/source/ui/view/drbezob.cxx +++ b/sd/source/ui/view/drbezob.cxx @@ -79,7 +79,7 @@ BezierObjectBar::BezierObjectBar( BezierObjectBar::~BezierObjectBar() { - SetRepeatTarget(NULL); + SetRepeatTarget(nullptr); } /** @@ -96,12 +96,12 @@ void BezierObjectBar::GetAttrState(SfxItemSet& rSet) if(xFunc.is()) { - if( 0 != dynamic_cast< const FuSelection *>( xFunc.get() )) + if( nullptr != dynamic_cast< const FuSelection *>( xFunc.get() )) { sal_uInt16 nEditMode = static_cast<FuSelection*>(xFunc.get())->GetEditMode(); rSet.Put(SfxBoolItem(nEditMode, true)); } - else if( 0 != dynamic_cast< const FuConstructBezierPolygon *>( xFunc.get() )) + else if( nullptr != dynamic_cast< const FuConstructBezierPolygon *>( xFunc.get() )) { sal_uInt16 nEditMode = static_cast<FuConstructBezierPolygon*>(xFunc.get())->GetEditMode(); rSet.Put(SfxBoolItem(nEditMode, true)); @@ -128,7 +128,7 @@ void BezierObjectBar::GetAttrState(SfxItemSet& rSet) } else { - IPolyPolygonEditorController* pIPPEC = 0; + IPolyPolygonEditorController* pIPPEC = nullptr; if( mpView->GetMarkedObjectList().GetMarkCount() ) pIPPEC = mpView; else @@ -217,7 +217,7 @@ void BezierObjectBar::Execute(SfxRequest& rReq) { const SdrMarkList& rMarkList = mpView->GetMarkedObjectList(); - IPolyPolygonEditorController* pIPPEC = 0; + IPolyPolygonEditorController* pIPPEC = nullptr; if( rMarkList.GetMarkCount() ) pIPPEC = mpView; else @@ -302,11 +302,11 @@ void BezierObjectBar::Execute(SfxRequest& rReq) if(xFunc.is()) { - if( 0 != dynamic_cast< const FuSelection *>( xFunc.get() )) + if( nullptr != dynamic_cast< const FuSelection *>( xFunc.get() )) { static_cast<FuSelection*>(xFunc.get())->SetEditMode(rReq.GetSlot()); } - else if( 0 != dynamic_cast< const FuConstructBezierPolygon *>( xFunc.get() )) + else if( nullptr != dynamic_cast< const FuConstructBezierPolygon *>( xFunc.get() )) { static_cast<FuConstructBezierPolygon*>(xFunc.get())->SetEditMode(rReq.GetSlot()); } |