summaryrefslogtreecommitdiff
path: root/svx/source/tbxctrls/fillctrl.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:25:28 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:50 +0100
commit6cd7bf2043146a630925a2e49336f02c802f707a (patch)
tree786cecd8ab993e25cda497d45b68007050c30d61 /svx/source/tbxctrls/fillctrl.cxx
parent28f4bee7bd7378141d8569186162e1a3166eb012 (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: I71682f28c6a54d33da6b0c971f34d0a705ff04f5
Diffstat (limited to 'svx/source/tbxctrls/fillctrl.cxx')
-rw-r--r--svx/source/tbxctrls/fillctrl.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/svx/source/tbxctrls/fillctrl.cxx b/svx/source/tbxctrls/fillctrl.cxx
index 678f3ba80d4c..c57eab708220 100644
--- a/svx/source/tbxctrls/fillctrl.cxx
+++ b/svx/source/tbxctrls/fillctrl.cxx
@@ -59,9 +59,9 @@ SvxFillToolBoxControl::SvxFillToolBoxControl(
, mpFillGradientItem()
, mpHatchItem()
, mpBitmapItem()
- , mpFillControl(0)
- , mpLbFillType(0)
- , mpLbFillAttr(0)
+ , mpFillControl(nullptr)
+ , mpLbFillType(nullptr)
+ , mpLbFillAttr(nullptr)
, meLastXFS(static_cast<sal_uInt16>(-1))
, mnLastPosGradient(0)
, mnLastPosHatch(0)
@@ -140,7 +140,7 @@ void SvxFillToolBoxControl::StateChanged(
{
if(SfxItemState::DEFAULT == eState)
{
- mpColorItem.reset(pState ? static_cast<XFillColorItem*>(pState->Clone()) : 0);
+ mpColorItem.reset(pState ? static_cast<XFillColorItem*>(pState->Clone()) : nullptr);
}
if(mpStyleItem && drawing::FillStyle_SOLID == (drawing::FillStyle)mpStyleItem->GetValue())
@@ -156,7 +156,7 @@ void SvxFillToolBoxControl::StateChanged(
{
if(SfxItemState::DEFAULT == eState)
{
- mpFillGradientItem.reset(pState ? static_cast<XFillGradientItem*>(pState->Clone()) : 0);
+ mpFillGradientItem.reset(pState ? static_cast<XFillGradientItem*>(pState->Clone()) : nullptr);
}
if(mpStyleItem && drawing::FillStyle_GRADIENT == (drawing::FillStyle)mpStyleItem->GetValue())
@@ -185,7 +185,7 @@ void SvxFillToolBoxControl::StateChanged(
{
if(SfxItemState::DEFAULT == eState)
{
- mpHatchItem.reset(pState ? static_cast<XFillHatchItem*>(pState->Clone()) : 0);
+ mpHatchItem.reset(pState ? static_cast<XFillHatchItem*>(pState->Clone()) : nullptr);
}
if(mpStyleItem && drawing::FillStyle_HATCH == (drawing::FillStyle)mpStyleItem->GetValue())
@@ -214,7 +214,7 @@ void SvxFillToolBoxControl::StateChanged(
{
if(SfxItemState::DEFAULT == eState)
{
- mpBitmapItem.reset(pState ? static_cast<XFillBitmapItem*>(pState->Clone()) : 0);
+ mpBitmapItem.reset(pState ? static_cast<XFillBitmapItem*>(pState->Clone()) : nullptr);
}
if(mpStyleItem && drawing::FillStyle_BITMAP == (drawing::FillStyle)mpStyleItem->GetValue())
@@ -794,7 +794,7 @@ IMPL_LINK_NOARG_TYPED(SvxFillToolBoxControl, SelectFillAttrHdl, ListBox&, void)
// #i122676# Change FillStale and Gradinet in one call
SfxViewFrame::Current()->GetDispatcher()->Execute(
SID_ATTR_FILL_GRADIENT, SfxCallMode::RECORD, &aXFillGradientItem,
- bFillStyleChange ? &aXFillStyleItem : 0L, 0L);
+ bFillStyleChange ? &aXFillStyleItem : nullptr, 0L);
}
}
@@ -825,7 +825,7 @@ IMPL_LINK_NOARG_TYPED(SvxFillToolBoxControl, SelectFillAttrHdl, ListBox&, void)
// #i122676# Change FillStale and Hatch in one call
SfxViewFrame::Current()->GetDispatcher()->Execute(
SID_ATTR_FILL_HATCH, SfxCallMode::RECORD, &aXFillHatchItem,
- bFillStyleChange ? &aXFillStyleItem : 0L, 0L);
+ bFillStyleChange ? &aXFillStyleItem : nullptr, 0L);
}
}
@@ -856,7 +856,7 @@ IMPL_LINK_NOARG_TYPED(SvxFillToolBoxControl, SelectFillAttrHdl, ListBox&, void)
// #i122676# Change FillStale and Bitmap in one call
SfxViewFrame::Current()->GetDispatcher()->Execute(
SID_ATTR_FILL_BITMAP, SfxCallMode::RECORD, &aXFillBitmapItem,
- bFillStyleChange ? &aXFillStyleItem : 0L, 0L);
+ bFillStyleChange ? &aXFillStyleItem : nullptr, 0L);
}
}