diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-03-03 14:03:12 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-03-11 14:30:23 +0100 |
commit | 5649c4b26401b56736b9eb56ef47b73b95e43c67 (patch) | |
tree | a1cb5b84f4a502042df74f638eb0fe8f35a88cee /sfx2/source/sidebar/SidebarController.cxx | |
parent | d764415977ad65bb4a657ccada7c9b2c19b689e1 (diff) |
create GetElementParentWindow on demand
Change-Id: I5c7182986206483ab8b1993a360767425870d69e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111940
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2/source/sidebar/SidebarController.cxx')
-rw-r--r-- | sfx2/source/sidebar/SidebarController.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx index e6a24e3b632a..dce668892c16 100644 --- a/sfx2/source/sidebar/SidebarController.cxx +++ b/sfx2/source/sidebar/SidebarController.cxx @@ -954,9 +954,8 @@ VclPtr<Panel> SidebarController::CreatePanel ( mxFrame); // Create the XUIElement. - Reference<awt::XWindowPeer> xPeer(pPanel->GetElementParentWindow(), UNO_QUERY); Reference<ui::XUIElement> xUIElement (CreateUIElement( - xPeer, + pPanel->GetElementParentWindow(), xPanelDescriptor->msImplementationURL, xPanelDescriptor->mbWantsCanvas, rContext)); @@ -974,7 +973,7 @@ VclPtr<Panel> SidebarController::CreatePanel ( } Reference<ui::XUIElement> SidebarController::CreateUIElement ( - const Reference<awt::XWindowPeer>& rxWindow, + const Reference<awt::XWindow>& rxWindow, const OUString& rsImplementationURL, const bool bWantsCanvas, const Context& rContext) |