summaryrefslogtreecommitdiff
path: root/cui/source/options/fontsubs.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:13:27 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:22 +0100
commitb58d56c5109f4cf6cacfc8e9c424b179a65bf1f1 (patch)
treebc7dcc71437367b193cb18dc5011c98ceb8c2c8b /cui/source/options/fontsubs.cxx
parent5185569e502240a064ef78d06d9de7fbbd93f3b6 (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: I7257532b90e3e393d56d5349531c9ad397523bca
Diffstat (limited to 'cui/source/options/fontsubs.cxx')
-rw-r--r--cui/source/options/fontsubs.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/cui/source/options/fontsubs.cxx b/cui/source/options/fontsubs.cxx
index 9a9e5ebd82f7..2130435bef02 100644
--- a/cui/source/options/fontsubs.cxx
+++ b/cui/source/options/fontsubs.cxx
@@ -40,7 +40,7 @@ SvxFontSubstTabPage::SvxFontSubstTabPage( vcl::Window* pParent,
const SfxItemSet& rSet )
: SfxTabPage(pParent, "OptFontsPage", "cui/ui/optfontspage.ui", &rSet)
, pConfig(new SvtFontSubstConfig)
- , pCheckButtonData(0)
+ , pCheckButtonData(nullptr)
{
get(m_pUseTableCB, "usetable");
get(m_pReplacements, "replacements");
@@ -147,9 +147,9 @@ SvxFontSubstTabPage::~SvxFontSubstTabPage()
void SvxFontSubstTabPage::dispose()
{
delete pCheckButtonData;
- pCheckButtonData = NULL;
+ pCheckButtonData = nullptr;
delete pConfig;
- pConfig = NULL;
+ pConfig = nullptr;
m_pCheckLB.disposeAndClear();
m_pUseTableCB.clear();
m_pReplacements.clear();
@@ -322,7 +322,7 @@ void SvxFontSubstTabPage::SelectHdl(vcl::Window* pWin)
{
SvTreeListEntry* pEntry = m_pCheckLB->FirstSelected();
- if (m_pCheckLB->NextSelected(pEntry) == 0)
+ if (m_pCheckLB->NextSelected(pEntry) == nullptr)
{
m_pFont1CB->SetText(SvTabListBox::GetEntryText(pEntry, 0));
m_pFont2CB->SetText(SvTabListBox::GetEntryText(pEntry, 1));
@@ -387,12 +387,12 @@ void SvxFontSubstTabPage::CheckEnable()
bApply = false;
else if(m_pCheckLB->GetEntryPos(sEntry) != 0xffffffff)
bApply = false;
- else if(pEntry != 0 && m_pCheckLB->NextSelected(pEntry) != 0)
+ else if(pEntry != nullptr && m_pCheckLB->NextSelected(pEntry) != nullptr)
bApply = false;
else
bApply = true;
- bDelete = pEntry != 0;
+ bDelete = pEntry != nullptr;
m_pApply->Enable(bApply);
m_pDelete->Enable(bDelete);