diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2016-05-08 00:30:32 +0300 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2016-05-08 00:33:37 +0300 |
commit | 0000c4b7924fcb1ac5e1895ef0069a712d186d9f (patch) | |
tree | a2de66122de1022c8ff64cbbf518d2b6040ff594 /sd | |
parent | 00f2ff01ae92648299d4ffeb115c3efb63267e24 (diff) |
No need to cast the same thing twice
Change-Id: I47e2ac07f811a2ce4bed7f732c37aedab16bc00d
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/sidebar/SlideBackground.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/sidebar/SlideBackground.cxx b/sd/source/ui/sidebar/SlideBackground.cxx index 8a372131f124..01b3f815e4fb 100644 --- a/sd/source/ui/sidebar/SlideBackground.cxx +++ b/sd/source/ui/sidebar/SlideBackground.cxx @@ -511,7 +511,7 @@ void SlideBackground::NotifyItemUpdate( case SID_DISPLAY_MASTER_BACKGROUND: { - const SfxBoolItem* pBoolItem = dynamic_cast< const SfxBoolItem* >(pState); + const SfxBoolItem* pBoolItem = nullptr; if (eState >= SfxItemState::DEFAULT) pBoolItem = dynamic_cast< const SfxBoolItem* >(pState); if (pBoolItem) |