diff options
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/window/brdwin.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/window/brdwin.cxx b/vcl/source/window/brdwin.cxx index dd8a8aebc215..28583f53275c 100644 --- a/vcl/source/window/brdwin.cxx +++ b/vcl/source/window/brdwin.cxx @@ -957,9 +957,9 @@ bool ImplStdBorderWindowView::Tracking( const TrackingEvent& rTEvt ) { // dispatch to correct window type (why is Close() not virtual ??? ) // TODO: make Close() virtual - vcl::Window *pWin = pBorderWindow->ImplGetClientWindow()->ImplGetWindow(); - SystemWindow *pSysWin = dynamic_cast<SystemWindow* >(pWin); - DockingWindow *pDockWin = dynamic_cast<DockingWindow*>(pWin); + VclPtr<vcl::Window> pWin = pBorderWindow->ImplGetClientWindow()->ImplGetWindow(); + SystemWindow *pSysWin = dynamic_cast<SystemWindow* >(pWin.get()); + DockingWindow *pDockWin = dynamic_cast<DockingWindow*>(pWin.get()); if ( pSysWin ) pSysWin->Close(); else if ( pDockWin ) |