diff options
Diffstat (limited to 'sd/source/ui/func/fusnapln.cxx')
-rw-r--r-- | sd/source/ui/func/fusnapln.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/ui/func/fusnapln.cxx b/sd/source/ui/func/fusnapln.cxx index 8e121c990389..667c3230ad57 100644 --- a/sd/source/ui/func/fusnapln.cxx +++ b/sd/source/ui/func/fusnapln.cxx @@ -62,11 +62,11 @@ void FuSnapLine::DoExecute( SfxRequest& rReq ) // Get index of snap line or snap point from the request. const SfxUInt32Item* pHelpLineIndex = rReq.GetArg<SfxUInt32Item>(ID_VAL_INDEX); - if (pHelpLineIndex != NULL) + if (pHelpLineIndex != nullptr) { nHelpLine = static_cast<sal_uInt16>(pHelpLineIndex->GetValue()); // Reset the argument pointer to trigger the display of the dialog. - pArgs = NULL; + pArgs = nullptr; } SdrPageView* pPV = mpView->GetSdrPageView(); @@ -77,7 +77,7 @@ void FuSnapLine::DoExecute( SfxRequest& rReq ) bool bLineExist (false); Point aLinePos; - if (pHelpLineIndex == NULL) + if (pHelpLineIndex == nullptr) { // The index of the snap line is not provided as argument to the // request. Determine it from the mouse position. @@ -102,7 +102,7 @@ void FuSnapLine::DoExecute( SfxRequest& rReq ) } else { - assert(pPV!=NULL); + assert(pPV!=nullptr); aLinePos = (pPV->GetHelpLines())[nHelpLine].GetPos(); pPV->LogicToPagePos(aLinePos); bLineExist = true; @@ -111,7 +111,7 @@ void FuSnapLine::DoExecute( SfxRequest& rReq ) aNewAttr.Put(SfxInt32Item(ATTR_SNAPLINE_Y, aLinePos.Y())); SdAbstractDialogFactory* pFact = SdAbstractDialogFactory::Create(); - std::unique_ptr<AbstractSdSnapLineDlg> pDlg(pFact ? pFact->CreateSdSnapLineDlg( NULL, aNewAttr, mpView ) : 0); + std::unique_ptr<AbstractSdSnapLineDlg> pDlg(pFact ? pFact->CreateSdSnapLineDlg( nullptr, aNewAttr, mpView ) : nullptr); OSL_ASSERT(pDlg); if (!pDlg) return; |