summaryrefslogtreecommitdiff
path: root/sw/source/ui/fldui/flddinf.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/fldui/flddinf.cxx')
-rw-r--r--sw/source/ui/fldui/flddinf.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/ui/fldui/flddinf.cxx b/sw/source/ui/fldui/flddinf.cxx
index 3bdc85d99755..58ea65708db5 100644
--- a/sw/source/ui/fldui/flddinf.cxx
+++ b/sw/source/ui/fldui/flddinf.cxx
@@ -50,7 +50,7 @@ using namespace com::sun::star;
SwFieldDokInfPage::SwFieldDokInfPage(vcl::Window* pParent, const SfxItemSet& rCoreSet)
: SwFieldPage(pParent, "FieldDocInfoPage",
"modules/swriter/ui/flddocinfopage.ui", rCoreSet)
- , pSelEntry(0)
+ , pSelEntry(nullptr)
, nOldSel(0)
, nOldFormat(0)
{
@@ -110,12 +110,12 @@ void SwFieldDokInfPage::Reset(const SfxItemSet* )
// initialise TypeListBox
m_pTypeTLB->SetUpdateMode(false);
m_pTypeTLB->Clear();
- pSelEntry = 0;
+ pSelEntry = nullptr;
// display SubTypes in TypeLB
- SvTreeListEntry* pEntry = 0;
+ SvTreeListEntry* pEntry = nullptr;
- SvTreeListEntry* pInfo = 0;
+ SvTreeListEntry* pInfo = nullptr;
sal_uInt16 nSubType = USHRT_MAX;
if (IsFieldEdit())
@@ -189,7 +189,7 @@ void SwFieldDokInfPage::Reset(const SfxItemSet* )
}
// select old Pos
- if (pSelEntry != 0)
+ if (pSelEntry != nullptr)
{
m_pTypeTLB->Select(pSelEntry);
nSubType = (sal_uInt16)reinterpret_cast<sal_uLong>(pSelEntry->GetUserData());
@@ -202,7 +202,7 @@ void SwFieldDokInfPage::Reset(const SfxItemSet* )
FillSelectionLB(nSubType);
if ( pSelEntry )
- TypeHdl(NULL);
+ TypeHdl(nullptr);
m_pTypeTLB->SetUpdateMode(true);
m_pTypeTLB->SetSelectHdl(LINK(this, SwFieldDokInfPage, TypeHdl));