summaryrefslogtreecommitdiff
path: root/filter/source/config/cache/configflush.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'filter/source/config/cache/configflush.hxx')
-rw-r--r--filter/source/config/cache/configflush.hxx16
1 files changed, 6 insertions, 10 deletions
diff --git a/filter/source/config/cache/configflush.hxx b/filter/source/config/cache/configflush.hxx
index f3e284556681..ba20c9e9d505 100644
--- a/filter/source/config/cache/configflush.hxx
+++ b/filter/source/config/cache/configflush.hxx
@@ -16,13 +16,11 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_FILTER_SOURCE_CONFIG_CACHE_CONFIGFLUSH_HXX
-#define INCLUDED_FILTER_SOURCE_CONFIG_CACHE_CONFIGFLUSH_HXX
+#pragma once
-#include "cacheitem.hxx"
#include <com/sun/star/util/XRefreshable.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
-#include <cppuhelper/interfacecontainer.h>
+#include <comphelper/interfacecontainer4.hxx>
#include <cppuhelper/implbase.hxx>
@@ -35,14 +33,14 @@ namespace filter::config {
@descr Such refresh listener will be called in case the
type/filter configuration will be changed at runtime.
*/
-class ConfigFlush final : public BaseLock
- , public ::cppu::WeakImplHelper<
+class ConfigFlush final : public ::cppu::WeakImplHelper<
css::util::XRefreshable,
css::lang::XServiceInfo
>
{
- /** @short holds all listener, which are registered at this instance. */
- ::cppu::OMultiTypeInterfaceContainerHelper m_lListener;
+ std::mutex m_aMutex;
+ /** @short holds all listener, which are registered at this instance. */
+ comphelper::OInterfaceContainerHelper4<css::util::XRefreshListener> m_aRefreshListeners;
// native interface
@@ -87,6 +85,4 @@ class ConfigFlush final : public BaseLock
} // namespace filter::config
-#endif // INCLUDED_FILTER_SOURCE_CONFIG_CACHE_CONFIGFLUSH_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */