diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-03-12 12:01:06 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-03-12 16:47:08 +0100 |
commit | 9d1eea8f21907a86f23736fd739d1b032e410711 (patch) | |
tree | 6e26c77ce2ffde793ded1bb357f746370bae295b /sd | |
parent | b9190aca7ddd1fa7daa30eed0c8770196ca7c08e (diff) |
can call XWindow::setVisible instead of extracting its vcl::Window
Change-Id: Ia3b4c95b37f5da7ae1c8e04ae1181d00d7567cbf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112387
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/qa/unit/misc-tests.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sd/qa/unit/misc-tests.cxx b/sd/qa/unit/misc-tests.cxx index f23ee5b5cea5..0ae169ce4431 100644 --- a/sd/qa/unit/misc-tests.cxx +++ b/sd/qa/unit/misc-tests.cxx @@ -50,7 +50,6 @@ #include <comphelper/base64.hxx> #include <toolkit/helper/vclunohelper.hxx> #include <LayerTabBar.hxx> -#include <vcl/window.hxx> #include <vcl/event.hxx> #include <vcl/keycodes.hxx> #include <svx/svdoashp.hxx> @@ -148,9 +147,7 @@ sd::DrawDocShellRef SdMiscTest::Load(const OUString& rURL, sal_Int32 nFormat) uno::Reference<awt::XWindow> xContainerWindow = xTargetFrame->getContainerWindow(); CPPUNIT_ASSERT(xContainerWindow.is()); xContainerWindow->setPosSize(0, 0, 1024, 768, awt::PosSize::SIZE); - VclPtr<vcl::Window> pContainerWindow = VCLUnoHelper::GetWindow(xContainerWindow); - CPPUNIT_ASSERT(pContainerWindow); - pContainerWindow->Show(true); + xContainerWindow->setVisible(true); // 1. Open the document sd::DrawDocShellRef xDocSh = loadURL(rURL, nFormat); |