[Libreoffice-commits] core.git: vcl/unx
Stephan Bergmann
sbergman at redhat.com
Mon Jun 29 03:28:10 PDT 2015
vcl/unx/gtk/a11y/atkutil.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit b3307f57fa8bae9736977aa72597dc4ea958a7ec
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Mon Jun 29 12:27:38 2015 +0200
-fsanitize=vptr: avoid needless, wrong downcast
Change-Id: Ib07f3e484f0065a0c72cc0672fc5d975c00f38fa
diff --git a/vcl/unx/gtk/a11y/atkutil.cxx b/vcl/unx/gtk/a11y/atkutil.cxx
index 2ad3124..d816a80 100644
--- a/vcl/unx/gtk/a11y/atkutil.cxx
+++ b/vcl/unx/gtk/a11y/atkutil.cxx
@@ -453,8 +453,7 @@ static void handle_toolbox_highlight(vcl::Window *pWindow)
static void handle_toolbox_highlightoff(vcl::Window *pWindow)
{
- ToolBox *pToolBox = static_cast <ToolBox *> (pWindow);
- ToolBox* pToolBoxParent = dynamic_cast< ToolBox* >( pToolBox->GetParent() );
+ ToolBox* pToolBoxParent = dynamic_cast< ToolBox* >( pWindow->GetParent() );
// Notify when leaving sub toolboxes
if( pToolBoxParent && pToolBoxParent->HasFocus() )
More information about the Libreoffice-commits
mailing list