diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-13 14:50:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-14 06:36:24 +0000 |
commit | 793904ff3a7d8cceafab3d83a562261c4c17fd14 (patch) | |
tree | 66678c358588a687d56e8d1df221f13f24806b18 /reportdesign/source | |
parent | 2ec4a66b6d049f5d11f4ceb993ed907c790ed592 (diff) |
use more VCLXPopupMenu instead of XPopupMenu
which avoids a bunch of casting and makes the dependency explicit
instead of implicit
Change-Id: I754da72916fbbc51e7edc3c806155da34d347bd8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145472
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'reportdesign/source')
-rw-r--r-- | reportdesign/source/ui/report/ReportSection.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/reportdesign/source/ui/report/ReportSection.cxx b/reportdesign/source/ui/report/ReportSection.cxx index 1d9ccd42c4e9..c246aeb9971c 100644 --- a/reportdesign/source/ui/report/ReportSection.cxx +++ b/reportdesign/source/ui/report/ReportSection.cxx @@ -42,6 +42,7 @@ #include <com/sun/star/awt/PopupMenuDirection.hpp> #include <com/sun/star/frame/XPopupMenuController.hpp> #include <comphelper/propertyvalue.hxx> +#include <toolkit/awt/vclxmenu.hxx> #include <toolkit/helper/convert.hxx> #include <comphelper/diagnose_ex.hxx> #include <RptDef.hxx> @@ -434,9 +435,7 @@ void OReportSection::Command( const CommandEvent& _rCEvt ) if (!xMenuController.is()) return; - css::uno::Reference<css::awt::XPopupMenu> xPopupMenu( - xContext->getServiceManager()->createInstanceWithContext( - "com.sun.star.awt.PopupMenu", xContext), css::uno::UNO_QUERY); + rtl::Reference<VCLXPopupMenu> xPopupMenu = new VCLXPopupMenu(); if (!xPopupMenu.is()) return; |