diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-03-11 15:48:09 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-03-12 10:04:11 +0100 |
commit | 32b7c32aa84dc51d3acd75bde5db7655868e5ad9 (patch) | |
tree | 7fc01cdca942d2f2394cf799fd1136dfd78e3e7d /extensions | |
parent | 07d278c911d738f06c3bbb6354336ac03c8146e1 (diff) |
use VCLUnoHelper::GetWindow
instead of directly using VCLXWindow
Change-Id: I80c70c9773b1963ec4d58c833ff2fdba9cfc4b92
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112353
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/propctrlr/propcontroller.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/extensions/source/propctrlr/propcontroller.cxx b/extensions/source/propctrlr/propcontroller.cxx index 1835501e5525..d9166b64dff6 100644 --- a/extensions/source/propctrlr/propcontroller.cxx +++ b/extensions/source/propctrlr/propcontroller.cxx @@ -38,7 +38,7 @@ #include <com/sun/star/util/VetoException.hpp> #include <tools/debug.hxx> #include <tools/diagnose_ex.h> -#include <toolkit/awt/vclxwindow.hxx> +#include <toolkit/helper/vclunohelper.hxx> #include <vcl/svapp.hxx> #include <vcl/weld.hxx> #include <vcl/weldutils.hxx> @@ -344,8 +344,7 @@ namespace pcr } else { - VCLXWindow* pContainerWindow = comphelper::getUnoTunnelImplementation<VCLXWindow>(xContainerWindow); - VclPtr<vcl::Window> pParentWin = pContainerWindow ? pContainerWindow->GetWindow() : nullptr; + VclPtr<vcl::Window> pParentWin = VCLUnoHelper::GetWindow(xContainerWindow); if (!pParentWin) throw RuntimeException("The frame is invalid. Unable to extract the container window.",*this); xBuilder.reset(Application::CreateInterimBuilder(pParentWin, sUIFile, true)); |