summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-11-07 15:25:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-11-08 19:55:16 +0100
commite87937d1fab87fa3225f5bcc0d2f5182d5fcef39 (patch)
tree9a046a955668bfe0fe13f08d57fe1005857a164e /toolkit
parentc0e516609b9836f05543591398aeb7e99fe23234 (diff)
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>
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/awt/vclxwindow.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/toolkit/source/awt/vclxwindow.cxx b/toolkit/source/awt/vclxwindow.cxx
index 5f061e6bd5a9..2448eaf64667 100644
--- a/toolkit/source/awt/vclxwindow.cxx
+++ b/toolkit/source/awt/vclxwindow.cxx
@@ -129,7 +129,7 @@ public:
mxAccessibleContext;
css::uno::Reference< css::awt::XGraphics >
mxViewGraphics;
- css::uno::Reference< css::awt::XStyleSettings >
+ rtl::Reference< toolkit::WindowStyleSettings >
mxWindowStyleSettings;
public:
@@ -249,9 +249,8 @@ void VCLXWindowImpl::disposing()
maTopWindowListeners.disposeAndClear( aEvent );
maWindow2Listeners.disposeAndClear( aEvent );
- ::toolkit::WindowStyleSettings* pStyleSettings = static_cast< ::toolkit::WindowStyleSettings* >( mxWindowStyleSettings.get() );
- if ( pStyleSettings != nullptr )
- pStyleSettings->dispose();
+ if ( mxWindowStyleSettings )
+ mxWindowStyleSettings->dispose();
mxWindowStyleSettings.clear();
}