summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-12-01 21:33:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-12-04 12:05:13 +0100
commit962c9cb5cf9127ccad2c9d947ea03d40e4e556ce (patch)
treef523436995193ed8951548a7c92439738dbc5b2a /sfx2
parent5aac0725c79d21dba11c03d3c39ccb986a5e7cca (diff)
use OMultiTypeInterfaceContainerHelperVar3 in SfxStatusDispatcher
Change-Id: I79beb9ab22184176c67555d8742c01c11c9e6f8c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126339 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/inc/unoctitm.hxx4
-rw-r--r--sfx2/source/control/unoctitm.cxx6
2 files changed, 5 insertions, 5 deletions
diff --git a/sfx2/inc/unoctitm.hxx b/sfx2/inc/unoctitm.hxx
index a88a64c261ef..6eb9e7147945 100644
--- a/sfx2/inc/unoctitm.hxx
+++ b/sfx2/inc/unoctitm.hxx
@@ -21,7 +21,7 @@
#include <memory>
#include <com/sun/star/frame/XNotifyingDispatch.hpp>
#include <com/sun/star/lang/XUnoTunnel.hpp>
-#include <comphelper/multiinterfacecontainer2.hxx>
+#include <comphelper/multiinterfacecontainer3.hxx>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/interfacecontainer.hxx>
#include <cppuhelper/weakref.hxx>
@@ -39,7 +39,7 @@ class SfxBindings;
class SfxDispatcher;
class SfxSlot;
-typedef comphelper::OMultiTypeInterfaceContainerHelperVar2<OUString>
+typedef comphelper::OMultiTypeInterfaceContainerHelperVar3<css::frame::XStatusListener, OUString>
SfxStatusDispatcher_Impl_ListenerContainer;
class SfxStatusDispatcher : public cppu::WeakImplHelper<css::frame::XNotifyingDispatch>
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index b01500814bc9..cecfb4c639e1 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -794,15 +794,15 @@ void SfxDispatchController_Impl::addStatusListener(const css::uno::Reference< cs
void SfxDispatchController_Impl::sendStatusChanged(const OUString& rURL, const css::frame::FeatureStateEvent& rEvent)
{
- ::comphelper::OInterfaceContainerHelper2* pContnr = pDispatch->GetListeners().getContainer(rURL);
+ ::comphelper::OInterfaceContainerHelper3<css::frame::XStatusListener>* pContnr = pDispatch->GetListeners().getContainer(rURL);
if (!pContnr)
return;
- ::comphelper::OInterfaceIteratorHelper2 aIt(*pContnr);
+ ::comphelper::OInterfaceIteratorHelper3 aIt(*pContnr);
while (aIt.hasMoreElements())
{
try
{
- static_cast<css::frame::XStatusListener*>(aIt.next())->statusChanged(rEvent);
+ aIt.next()->statusChanged(rEvent);
}
catch (const css::uno::RuntimeException&)
{