diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-03-27 16:32:16 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-03-30 18:01:46 +0100 |
commit | 6e4ba9b13d81a9d2f7476bf4fbf21a9eb8dc2371 (patch) | |
tree | 61d758df7a10257d14f2915d8b0377419456e9e6 /include/framework | |
parent | 62d5b1ae8db0292d03ee2747aab42bac8c0d3379 (diff) |
convert TitleHelper to comphelper::WeakImplHelper
Change-Id: I81571a0786a4d13e049dba82ba6e4f3509887fa4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165572
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/framework')
-rw-r--r-- | include/framework/titlehelper.hxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/framework/titlehelper.hxx b/include/framework/titlehelper.hxx index 064bfe8cc7b7..c87111064f0d 100644 --- a/include/framework/titlehelper.hxx +++ b/include/framework/titlehelper.hxx @@ -27,10 +27,9 @@ #include <com/sun/star/frame/XFrameActionListener.hpp> #include <com/sun/star/document/XDocumentEventListener.hpp> -#include <cppuhelper/basemutex.hxx> #include <cppuhelper/weakref.hxx> -#include <cppuhelper/implbase.hxx> -#include <comphelper/multicontainer2.hxx> +#include <comphelper/compbase.hxx> +#include <comphelper/interfacecontainer4.hxx> #include <rtl/ustrbuf.hxx> @@ -51,8 +50,8 @@ namespace framework{ @threadsafe */ -class UNLESS_MERGELIBS_MORE(FWK_DLLPUBLIC) TitleHelper final : private ::cppu::BaseMutex - , public ::cppu::WeakImplHelper< css::frame::XTitle , +class UNLESS_MERGELIBS_MORE(FWK_DLLPUBLIC) TitleHelper final : + public ::comphelper::WeakImplHelper< css::frame::XTitle , css::frame::XTitleChangeBroadcaster, css::frame::XTitleChangeListener , css::frame::XFrameActionListener , @@ -172,7 +171,7 @@ class UNLESS_MERGELIBS_MORE(FWK_DLLPUBLIC) TitleHelper final : private ::cppu::B ::sal_Int32 m_nLeasedNumber; /** contains all title change listener */ - comphelper::OMultiTypeInterfaceContainerHelper2 m_aListener; + comphelper::OInterfaceContainerHelper4<css::frame::XTitleChangeListener> m_aTitleChangeListeners; }; } // namespace framework |