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/baside2b.cxx | |
parent | 3494780dcdb98b70fca4f28c354eec9c081b59c5 (diff) |
IDE: dynamic_cast fix
Change-Id: Ia8826be6e6fe7c09adb4f0104b52ceba6b89163b
Diffstat (limited to 'basctl/source/basicide/baside2b.cxx')
-rw-r--r-- | basctl/source/basicide/baside2b.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index 0f11e8433343..dd6337e6601b 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -54,10 +54,10 @@ long nVirtToolBoxHeight; // inited in WatchWindow, used in Stackwindow long nHeaderBarHeight; // Returns pBase converted to SbxVariable if valid and is not an SbxMethod. -SbxVariable const* IsSbxVariable (SbxBase const* pBase) +SbxVariable* IsSbxVariable (SbxBase* pBase) { - if (SbxVariable const* pVar = dynamic_cast<SbxVariable const*>(pBase)) - if (!dynamic_cast<SbxMethod const*>(pVar)) + if (SbxVariable* pVar = dynamic_cast<SbxVariable*>(pBase)) + if (!dynamic_cast<SbxMethod*>(pVar)) return pVar; return 0; } @@ -1933,7 +1933,7 @@ sal_Bool WatchTreeListBox::EditingEntry( SvLBoxEntry* pEntry, Selection& ) { // No out of scope entries bool bArrayElement; - SbxBase const* pSbx = ImplGetSBXForEntry( pEntry, bArrayElement ); + SbxBase* pSbx = ImplGetSBXForEntry( pEntry, bArrayElement ); if (IsSbxVariable(pSbx) || bArrayElement) { // Accept no objects and only end nodes of arrays for editing @@ -1970,7 +1970,7 @@ bool WatchTreeListBox::ImplBasicEntryEdited( SvLBoxEntry* pEntry, const String& bool bArrayElement; SbxBase* pSBX = ImplGetSBXForEntry( pEntry, bArrayElement ); - if (SbxVariable const* pVar = IsSbxVariable(pSBX)) + if (SbxVariable* pVar = IsSbxVariable(pSBX)) { SbxDataType eType = pVar->GetType(); if ( (sal_uInt8)eType != (sal_uInt8)SbxOBJECT |