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

-fsanitize=vptr: avoid needless, wrong downcast

Change-Id: Ib07f3e484f0065a0c72cc0672fc5d975c00f38fa
üst d2cf81e6
...@@ -453,8 +453,7 @@ static void handle_toolbox_highlight(vcl::Window *pWindow) ...@@ -453,8 +453,7 @@ static void handle_toolbox_highlight(vcl::Window *pWindow)
static void handle_toolbox_highlightoff(vcl::Window *pWindow) static void handle_toolbox_highlightoff(vcl::Window *pWindow)
{ {
ToolBox *pToolBox = static_cast <ToolBox *> (pWindow); ToolBox* pToolBoxParent = dynamic_cast< ToolBox* >( pWindow->GetParent() );
ToolBox* pToolBoxParent = dynamic_cast< ToolBox* >( pToolBox->GetParent() );
// Notify when leaving sub toolboxes // Notify when leaving sub toolboxes
if( pToolBoxParent && pToolBoxParent->HasFocus() ) if( pToolBoxParent && pToolBoxParent->HasFocus() )
......
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