diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-20 18:24:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-21 08:49:13 +0200 |
commit | bda438ecedaa86ca44228a193d3acd37eef4f818 (patch) | |
tree | f6110764cc27675d114cef5142bd739dfa793e62 /toolkit/qa/cppunit | |
parent | 17db60eb46b31b6e4b7e664b01e6f7bb6a3016ab (diff) |
loplugin:referencecasting in test..toolkit
Change-Id: Ib1e6ba9c3849256b81fa5fa395e891226a044f7c
Reviewed-on: https://gerrit.libreoffice.org/76029
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'toolkit/qa/cppunit')
-rw-r--r-- | toolkit/qa/cppunit/Dialog.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/toolkit/qa/cppunit/Dialog.cxx b/toolkit/qa/cppunit/Dialog.cxx index 9e832a8c9175..0918b9e8d115 100644 --- a/toolkit/qa/cppunit/Dialog.cxx +++ b/toolkit/qa/cppunit/Dialog.cxx @@ -59,8 +59,7 @@ CPPUNIT_TEST_FIXTURE(DialogTest, testDialogSizeable) uno::Reference<awt::XUnoControlDialog> xControl = awt::UnoControlDialog::create(mxContext); xControl->setModel(xControlModel); - uno::Reference<awt::XWindow> xWindow(xControl, uno::UNO_QUERY); - xWindow->setVisible(true); + xControl->setVisible(true); xDialog.set(xControl, uno::UNO_QUERY_THROW); xDialog->execute(); |