summaryrefslogtreecommitdiff
path: root/svx/source/sidebar/text/TextPropertyPanel.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/sidebar/text/TextPropertyPanel.cxx')
-rw-r--r--svx/source/sidebar/text/TextPropertyPanel.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/svx/source/sidebar/text/TextPropertyPanel.cxx b/svx/source/sidebar/text/TextPropertyPanel.cxx
index 4d7cee447047..38484e7c3988 100644
--- a/svx/source/sidebar/text/TextPropertyPanel.cxx
+++ b/svx/source/sidebar/text/TextPropertyPanel.cxx
@@ -68,12 +68,12 @@ VclPtr<vcl::Window> TextPropertyPanel::Create (
SfxBindings* pBindings,
const ::sfx2::sidebar::EnumContext& rContext)
{
- if (pParent == NULL)
- throw lang::IllegalArgumentException("no parent Window given to TextPropertyPanel::Create", NULL, 0);
+ if (pParent == nullptr)
+ throw lang::IllegalArgumentException("no parent Window given to TextPropertyPanel::Create", nullptr, 0);
if ( ! rxFrame.is())
- throw lang::IllegalArgumentException("no XFrame given to TextPropertyPanel::Create", NULL, 1);
- if (pBindings == NULL)
- throw lang::IllegalArgumentException("no SfxBindings given to TextPropertyPanel::Create", NULL, 2);
+ throw lang::IllegalArgumentException("no XFrame given to TextPropertyPanel::Create", nullptr, 1);
+ if (pBindings == nullptr)
+ throw lang::IllegalArgumentException("no SfxBindings given to TextPropertyPanel::Create", nullptr, 2);
return VclPtr<TextPropertyPanel>::Create(
pParent,
@@ -106,7 +106,7 @@ TextPropertyPanel::TextPropertyPanel ( vcl::Window* pParent, const css::uno::Ref
InitToolBoxSpacing();
//init state
- mpHeightItem = NULL;
+ mpHeightItem = nullptr;
meUnderline = UNDERLINE_NONE;
meUnderlineColor = COL_AUTO;
mbKernAvailable = true;
@@ -264,7 +264,7 @@ void TextPropertyPanel::NotifyItemUpdate (
if ( eState >= SfxItemState::DEFAULT && dynamic_cast<const SvxFontHeightItem*>( pState) != nullptr )
mpHeightItem = const_cast<SvxFontHeightItem*>(static_cast<const SvxFontHeightItem*>(pState));
else
- mpHeightItem = NULL;
+ mpHeightItem = nullptr;
}
break;
case SID_ATTR_CHAR_UNDERLINE: