summaryrefslogtreecommitdiffstats
path: root/sw/source/ui/fldui/fldtdlg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/fldui/fldtdlg.cxx')
-rw-r--r--sw/source/ui/fldui/fldtdlg.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/sw/source/ui/fldui/fldtdlg.cxx b/sw/source/ui/fldui/fldtdlg.cxx
index ca4a4fa7f0cb..abb00aaefccb 100644
--- a/sw/source/ui/fldui/fldtdlg.cxx
+++ b/sw/source/ui/fldui/fldtdlg.cxx
@@ -66,14 +66,14 @@ SwFieldDlg::SwFieldDlg(SfxBindings* pB, SwChildWinWrapper* pCW, vcl::Window *pPa
GetOKButton().SetClickHdl(LINK(this, SwFieldDlg, OKHdl));
- m_nDokId = AddTabPage("document", SwFieldDokPage::Create, 0);
- m_nVarId = AddTabPage("variables", SwFieldVarPage::Create, 0);
- m_nDokInf = AddTabPage("docinfo", SwFieldDokInfPage::Create, 0);
+ m_nDokId = AddTabPage("document", SwFieldDokPage::Create, nullptr);
+ m_nVarId = AddTabPage("variables", SwFieldVarPage::Create, nullptr);
+ m_nDokInf = AddTabPage("docinfo", SwFieldDokInfPage::Create, nullptr);
if (!m_bHtmlMode)
{
- m_nRefId = AddTabPage("ref", SwFieldRefPage::Create, 0);
- m_nFuncId = AddTabPage("functions", SwFieldFuncPage::Create, 0);
+ m_nRefId = AddTabPage("ref", SwFieldRefPage::Create, nullptr);
+ m_nFuncId = AddTabPage("functions", SwFieldFuncPage::Create, nullptr);
utl::OConfigurationTreeRoot aCfgRoot
= utl::OConfigurationTreeRoot::createWithComponentContext(
@@ -87,7 +87,7 @@ SwFieldDlg::SwFieldDlg(SfxBindings* pB, SwChildWinWrapper* pCW, vcl::Window *pPa
OUString("DatabaseFields")) >>= bDatabaseFields;
if (bDatabaseFields)
- m_nDbId = AddTabPage("database", SwFieldDBPage::Create, 0);
+ m_nDbId = AddTabPage("database", SwFieldDBPage::Create, nullptr);
else
RemoveTabPage("database");
}
@@ -175,7 +175,7 @@ SfxItemSet* SwFieldDlg::CreateInputItemSet( sal_uInt16 nID )
return pISet;
}
else
- return 0;
+ return nullptr;
}
// kick off inserting of new fields
@@ -184,7 +184,7 @@ IMPL_LINK_NOARG_TYPED(SwFieldDlg, OKHdl, Button*, void)
if (GetOKButton().IsEnabled())
{
SfxTabPage* pPage = GetTabPage(GetCurPageId());
- pPage->FillItemSet(0);
+ pPage->FillItemSet(nullptr);
GetOKButton().GrabFocus(); // because of InputField-Dlg
}
@@ -304,7 +304,7 @@ void SwFieldDlg::PageCreated(sal_uInt16 nId, SfxTabPage& rPage)
if (nId == m_nDbId)
{
SfxDispatcher* pDispatch = m_pBindings->GetDispatcher();
- SfxViewFrame* pViewFrame = pDispatch ? pDispatch->GetFrame() : 0;
+ SfxViewFrame* pViewFrame = pDispatch ? pDispatch->GetFrame() : nullptr;
if(pViewFrame)
{
SfxViewShell* pViewShell = SfxViewShell::GetFirst( true, checkSfxViewShell<SwView> );