diff options
author | Uray M. János <uray.janos@gmail.com> | 2012-08-07 15:22:25 +0200 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2012-08-07 16:27:34 +0300 |
commit | 5f3a75f97e4c4235c865c2687c3bfca37e19811b (patch) | |
tree | 79d9bda009fd840947804115d5fa3dbe63c4220b /basctl/source/basicide/tbxctl.cxx | |
parent | 3494780dcdb98b70fca4f28c354eec9c081b59c5 (diff) |
IDE: dynamic_cast fix
Change-Id: Ia8826be6e6fe7c09adb4f0104b52ceba6b89163b
Diffstat (limited to 'basctl/source/basicide/tbxctl.cxx')
-rw-r--r-- | basctl/source/basicide/tbxctl.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/basctl/source/basicide/tbxctl.cxx b/basctl/source/basicide/tbxctl.cxx index a80381b276de..6052b47ea28a 100644 --- a/basctl/source/basicide/tbxctl.cxx +++ b/basctl/source/basicide/tbxctl.cxx @@ -67,10 +67,11 @@ void TbxControls::StateChanged( sal_uInt16 nSID, SfxItemState eState, { if( pState ) { - if (SfxAllEnumItem* pItem = dynamic_cast<SfxAllEnumItem*>(pState)) + if (SfxAllEnumItem const* pItem = dynamic_cast<SfxAllEnumItem const*>(pState)) { sal_uInt16 nTemp = 0; - switch (sal_uInt16 nLastEnum = pItem->GetValue()) + sal_uInt16 nLastEnum = pItem->GetValue(); + switch (nLastEnum) { case SVX_SNAP_PUSHBUTTON: nTemp = SID_INSERT_PUSHBUTTON; break; case SVX_SNAP_CHECKBOX: nTemp = SID_INSERT_CHECKBOX; break; |