summaryrefslogtreecommitdiff
path: root/sw/source/ui/fldui/fldedt.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/fldui/fldedt.cxx')
-rw-r--r--sw/source/ui/fldui/fldedt.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/sw/source/ui/fldui/fldedt.cxx b/sw/source/ui/fldui/fldedt.cxx
index 4d4131039c62..c339618a5ef2 100644
--- a/sw/source/ui/fldui/fldedt.cxx
+++ b/sw/source/ui/fldui/fldedt.cxx
@@ -89,7 +89,7 @@ void SwFieldEditDlg::EnsureSelection(SwField *pCurField, SwFieldMgr &rMgr)
}
SwFieldEditDlg::SwFieldEditDlg(SwView& rVw)
- : SfxSingleTabDialog(&rVw.GetViewFrame()->GetWindow(), 0,
+ : SfxSingleTabDialog(&rVw.GetViewFrame()->GetWindow(), nullptr,
"EditFieldDialog", "modules/swriter/ui/editfielddialog.ui")
, pSh(rVw.GetWrtShellPtr())
{
@@ -167,13 +167,13 @@ VclPtr<SfxTabPage> SwFieldEditDlg::CreatePage(sal_uInt16 nGroup)
switch (nGroup)
{
case GRP_DOC:
- pTabPage = SwFieldDokPage::Create(get_content_area(), 0);
+ pTabPage = SwFieldDokPage::Create(get_content_area(), nullptr);
break;
case GRP_FKT:
- pTabPage = SwFieldFuncPage::Create(get_content_area(), 0);
+ pTabPage = SwFieldFuncPage::Create(get_content_area(), nullptr);
break;
case GRP_REF:
- pTabPage = SwFieldRefPage::Create(get_content_area(), 0);
+ pTabPage = SwFieldRefPage::Create(get_content_area(), nullptr);
break;
case GRP_REG:
{
@@ -192,11 +192,11 @@ VclPtr<SfxTabPage> SwFieldEditDlg::CreatePage(sal_uInt16 nGroup)
break;
}
case GRP_DB:
- pTabPage = SwFieldDBPage::Create(get_content_area(), 0);
+ pTabPage = SwFieldDBPage::Create(get_content_area(), nullptr);
static_cast<SwFieldDBPage*>(pTabPage.get())->SetWrtShell(*pSh);
break;
case GRP_VAR:
- pTabPage = SwFieldVarPage::Create(get_content_area(), 0);
+ pTabPage = SwFieldVarPage::Create(get_content_area(), nullptr);
break;
}
@@ -219,7 +219,7 @@ SwFieldEditDlg::~SwFieldEditDlg()
void SwFieldEditDlg::dispose()
{
- SwViewShell::SetCareWin(NULL);
+ SwViewShell::SetCareWin(nullptr);
pSh->EnterStdMode();
m_pPrevBT.clear();
m_pNextBT.clear();
@@ -246,7 +246,7 @@ IMPL_LINK_NOARG_TYPED(SwFieldEditDlg, OKHdl, Button*, void)
{
VclPtr<SfxTabPage> pTabPage = GetTabPage();
if (pTabPage)
- pTabPage->FillItemSet(0);
+ pTabPage->FillItemSet(nullptr);
EndDialog( RET_OK );
}
}
@@ -264,13 +264,13 @@ IMPL_LINK_TYPED( SwFieldEditDlg, NextPrevHdl, Button *, pButton, void )
pSh->EnterStdMode();
- SwFieldType *pOldTyp = 0;
+ SwFieldType *pOldTyp = nullptr;
VclPtr<SwFieldPage> pTabPage = static_cast<SwFieldPage*>(GetTabPage());
//#112462# FillItemSet may delete the current field
//that's why it has to be called before accessing the current field
if( GetOKButton()->IsEnabled() )
- pTabPage->FillItemSet(0);
+ pTabPage->FillItemSet(nullptr);
SwFieldMgr& rMgr = pTabPage->GetFieldMgr();
SwField *pCurField = rMgr.GetCurField();