summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2016-05-08 00:30:32 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2016-05-08 00:33:37 +0300
commit0000c4b7924fcb1ac5e1895ef0069a712d186d9f (patch)
treea2de66122de1022c8ff64cbbf518d2b6040ff594 /sd
parent00f2ff01ae92648299d4ffeb115c3efb63267e24 (diff)
No need to cast the same thing twice
Change-Id: I47e2ac07f811a2ce4bed7f732c37aedab16bc00d
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/sidebar/SlideBackground.cxx2
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)