vcl a11y: Use comphelper::disposeComponent
Change-Id: Ifc63db272484e9a7986e6113989f2f6274f40349 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177846 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
This commit is contained in:
parent
0e88a69ff0
commit
ab38826d90
1 changed files with 2 additions and 6 deletions
|
@ -24,6 +24,7 @@
|
|||
#include <comphelper/diagnose_ex.hxx>
|
||||
#include <sal/log.hxx>
|
||||
|
||||
#include <comphelper/types.hxx>
|
||||
#include <comphelper/lok.hxx>
|
||||
#include <vcl/dialoghelper.hxx>
|
||||
#include <vcl/svapp.hxx>
|
||||
|
@ -199,12 +200,7 @@ void Menu::dispose()
|
|||
}
|
||||
|
||||
// dispose accessible components
|
||||
if ( mxAccessible.is() )
|
||||
{
|
||||
css::uno::Reference< css::lang::XComponent> xComponent( mxAccessible, css::uno::UNO_QUERY );
|
||||
if ( xComponent.is() )
|
||||
xComponent->dispose();
|
||||
}
|
||||
comphelper::disposeComponent(mxAccessible);
|
||||
|
||||
if ( nEventId )
|
||||
Application::RemoveUserEvent( nEventId );
|
||||
|
|
Loading…
Reference in a new issue