[Libreoffice-commits] core.git: sd/qa
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Fri Mar 12 15:47:56 UTC 2021
sd/qa/unit/misc-tests.cxx | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
New commits:
commit 9d1eea8f21907a86f23736fd739d1b032e410711
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Mar 12 12:01:06 2021 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Mar 12 16:47:08 2021 +0100
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 at redhat.com>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
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);
More information about the Libreoffice-commits
mailing list