[Libreoffice-commits] core.git: sd/source

Maxim Monastirsky momonasmon at gmail.com
Sat May 7 21:34:24 UTC 2016


 sd/source/ui/sidebar/SlideBackground.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0000c4b7924fcb1ac5e1895ef0069a712d186d9f
Author: Maxim Monastirsky <momonasmon at gmail.com>
Date:   Sun May 8 00:30:32 2016 +0300

    No need to cast the same thing twice
    
    Change-Id: I47e2ac07f811a2ce4bed7f732c37aedab16bc00d

diff --git a/sd/source/ui/sidebar/SlideBackground.cxx b/sd/source/ui/sidebar/SlideBackground.cxx
index 8a37213..01b3f81 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)


More information about the Libreoffice-commits mailing list