loplugin:fieldcast in VCLXWindowImpl
Change-Id: I9a0181e87653e1bf62245e8ddf381518a59f841b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159116 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@@ -129,7 +129,7 @@ public:
|
|||||||
mxAccessibleContext;
|
mxAccessibleContext;
|
||||||
css::uno::Reference< css::awt::XGraphics >
|
css::uno::Reference< css::awt::XGraphics >
|
||||||
mxViewGraphics;
|
mxViewGraphics;
|
||||||
css::uno::Reference< css::awt::XStyleSettings >
|
rtl::Reference< toolkit::WindowStyleSettings >
|
||||||
mxWindowStyleSettings;
|
mxWindowStyleSettings;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@@ -249,9 +249,8 @@ void VCLXWindowImpl::disposing()
|
|||||||
maTopWindowListeners.disposeAndClear( aEvent );
|
maTopWindowListeners.disposeAndClear( aEvent );
|
||||||
maWindow2Listeners.disposeAndClear( aEvent );
|
maWindow2Listeners.disposeAndClear( aEvent );
|
||||||
|
|
||||||
::toolkit::WindowStyleSettings* pStyleSettings = static_cast< ::toolkit::WindowStyleSettings* >( mxWindowStyleSettings.get() );
|
if ( mxWindowStyleSettings )
|
||||||
if ( pStyleSettings != nullptr )
|
mxWindowStyleSettings->dispose();
|
||||||
pStyleSettings->dispose();
|
|
||||||
mxWindowStyleSettings.clear();
|
mxWindowStyleSettings.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user