Kaydet (Commit) 78738781 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Avoid unnecessary bad downcast

Change-Id: Ib7ed62599b9e088c4a91a39c3181f3a13e641d70
üst 05caf43f
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment