diff options
author | Noel Grandin <noel@peralex.com> | 2016-06-30 14:09:31 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-07-06 06:38:30 +0000 |
commit | 716844c6ab7cfc18efd61b0f77e285d453b6cc29 (patch) | |
tree | 868d93c4bfd99a84c339cb8e00202fe07d8affb2 /vcl/source/window/floatwin.cxx | |
parent | eff871de05c5efdac0d0397b539b3b5e999672c9 (diff) |
restore loplugin:vclwidget checking for calling clear() on VclPtr fields
Change-Id: I85eda1c33016c1461d897fc0a3b70457209a7405
Reviewed-on: https://gerrit.libreoffice.org/26806
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/source/window/floatwin.cxx')
-rw-r--r-- | vcl/source/window/floatwin.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/vcl/source/window/floatwin.cxx b/vcl/source/window/floatwin.cxx index 38d9a91be4cb..627cb6e6e65d 100644 --- a/vcl/source/window/floatwin.cxx +++ b/vcl/source/window/floatwin.cxx @@ -201,11 +201,7 @@ void FloatingWindow::ApplySettings(vcl::RenderContext& rRenderContext) FloatingWindow::~FloatingWindow() { disposeOnce(); - - // Unfortunately the vclwidgets clang plug-in says: "OutputDevice - // subclass should have nothing in its destructor but a call to - // disposeOnce()." - // assert (!mnPostId); + assert (!mnPostId); } void FloatingWindow::dispose() @@ -230,6 +226,7 @@ void FloatingWindow::dispose() mpNextFloat.clear(); mpFirstPopupModeWin.clear(); + mxPrevFocusWin.clear(); SystemWindow::dispose(); } |