diff options
Diffstat (limited to 'vcl/source/window/stacking.cxx')
-rw-r--r-- | vcl/source/window/stacking.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/window/stacking.cxx b/vcl/source/window/stacking.cxx index 60f7303f33bc..a8d58a086cbc 100644 --- a/vcl/source/window/stacking.cxx +++ b/vcl/source/window/stacking.cxx @@ -17,6 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <toolkit/awt/vclxwindow.hxx> #include <vcl/syswin.hxx> #include <vcl/window.hxx> #include <vcl/taskpanelist.hxx> @@ -619,7 +620,7 @@ bool Window::IsTopWindow() const { // #113722#, cache result of expensive queryInterface call vcl::Window *pThisWin = const_cast<vcl::Window*>(this); - uno::Reference< XTopWindow > xTopWindow( pThisWin->GetComponentInterface(), UNO_QUERY ); + auto xTopWindow = pThisWin->GetComponentInterfaceAs<XTopWindow>(); pThisWin->mpWindowImpl->mpWinData->mnIsTopWindow = xTopWindow.is() ? 1 : 0; } return mpWindowImpl->mpWinData->mnIsTopWindow == 1; |