diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:22:39 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:36 +0100 |
commit | de29ac09535d814e4be7e1bf0f10beb9f0f847e3 (patch) | |
tree | 139f75d657cb825622e812254b8b7df4e509140b /sc/source/ui/drawfunc/futext.cxx | |
parent | 60c40af090e420a8619b5236bde1ff4ef79100c6 (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I765d2a600f9c57da50c85354688e3ae796750d94
Diffstat (limited to 'sc/source/ui/drawfunc/futext.cxx')
-rw-r--r-- | sc/source/ui/drawfunc/futext.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sc/source/ui/drawfunc/futext.cxx b/sc/source/ui/drawfunc/futext.cxx index 8f00c253d26c..64c2d79c368f 100644 --- a/sc/source/ui/drawfunc/futext.cxx +++ b/sc/source/ui/drawfunc/futext.cxx @@ -110,7 +110,7 @@ static void lcl_UpdateHyphenator( Outliner& rOutliner, SdrObject* pObj ) FuText::FuText(ScTabViewShell* pViewSh, vcl::Window* pWin, ScDrawView* pViewP, SdrModel* pDoc, SfxRequest& rReq) : FuConstruct(pViewSh, pWin, pViewP, pDoc, rReq), - pTextObj(NULL) + pTextObj(nullptr) { } @@ -167,7 +167,7 @@ bool FuText::MouseButtonDown(const MouseEvent& rMEvt) const size_t nHdlNum = pView->GetHdlNum(pHdl); - if (pHdl != NULL) + if (pHdl != nullptr) { if (pView->HasMarkablePoints() && pView->IsPointMarkable(*pHdl)) { @@ -199,9 +199,9 @@ bool FuText::MouseButtonDown(const MouseEvent& rMEvt) SdrObject* pObj; SdrPageView* pPV; - if ( pHdl != NULL || pView->IsMarkedHit(aMDPos) ) + if ( pHdl != nullptr || pView->IsMarkedHit(aMDPos) ) { - if (pHdl == NULL && + if (pHdl == nullptr && // pView->TakeTextEditObject(aMDPos, pObj, pPV) ) pView->PickObj(aMDPos, pView->getHitTolLog(), pObj, pPV, SdrSearchOptions::PICKTEXTEDIT) ) { @@ -284,7 +284,7 @@ bool FuText::MouseButtonDown(const MouseEvent& rMEvt) pHdl=pView->PickHandle(aMDPos); - if (pHdl!=NULL) + if (pHdl!=nullptr) { pView->MarkPoint(*pHdl); pHdl=pView->GetHdl(nHdlNum); @@ -643,7 +643,7 @@ void FuText::SetInEditMode(SdrObject* pObj, const Point* pMousePixel, } } - pTextObj = NULL; + pTextObj = nullptr; if ( pObj ) { @@ -725,7 +725,7 @@ SdrObject* FuText::CreateDefaultObject(const sal_uInt16 nID, const Rectangle& rR SdrObject* pObj = SdrObjFactory::MakeNewObject( pView->GetCurrentObjInventor(), pView->GetCurrentObjIdentifier(), - 0L, pDrDoc); + nullptr, pDrDoc); if(pObj) { |