diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-02-27 10:39:49 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-02-27 10:39:49 +0100 |
commit | 787387810721d9fba6a5b7fce6e3260171526e01 (patch) | |
tree | a946bf5b7f59edb06979219b7e2213d7a2f213aa | |
parent | 05caf43ff5e78bbc0e672be1547fd1ef098d02bd (diff) |
Avoid unnecessary bad downcast
Change-Id: Ib7ed62599b9e088c4a91a39c3181f3a13e641d70
-rw-r--r-- | svtools/source/contnr/svimpbox.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx index f014b6fb1c29..760497e5a7d9 100644 --- a/svtools/source/contnr/svimpbox.cxx +++ b/svtools/source/contnr/svimpbox.cxx @@ -3192,7 +3192,7 @@ bool SvImpLBox::RequestHelp( const HelpEvent& rHEvt ) { // recalculate text rectangle SvLBoxTab* pTab; - SvLBoxString* pItem = static_cast<SvLBoxString*>(pView->GetItem( pEntry, aPos.X(), &pTab )); + SvLBoxItem* pItem = pView->GetItem( pEntry, aPos.X(), &pTab ); if (!pItem || pItem->GetType() != SV_ITEM_ID_LBOXSTRING) return false; @@ -3225,7 +3225,7 @@ bool SvImpLBox::RequestHelp( const HelpEvent& rHEvt ) aItemRect.Bottom() = aPt.Y(); Help::ShowQuickHelp( pView, aItemRect, - pItem->GetText(), QUICKHELP_LEFT | QUICKHELP_VCENTER ); + static_cast<SvLBoxString*>(pItem)->GetText(), QUICKHELP_LEFT | QUICKHELP_VCENTER ); return true; } } |