summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/comphelper/interfacecontainer3.hxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/comphelper/interfacecontainer3.hxx b/include/comphelper/interfacecontainer3.hxx
index 56cbeca61433..a9298a69e76d 100644
--- a/include/comphelper/interfacecontainer3.hxx
+++ b/include/comphelper/interfacecontainer3.hxx
@@ -85,7 +85,9 @@ public:
private:
OInterfaceContainerHelper3<ListenerT>& rCont;
- o3tl::cow_wrapper<std::vector<css::uno::Reference<ListenerT>>> maData;
+ o3tl::cow_wrapper<std::vector<css::uno::Reference<ListenerT>>,
+ o3tl::ThreadSafeRefCountingPolicy>
+ maData;
sal_Int32 nRemain;
OInterfaceIteratorHelper3(const OInterfaceIteratorHelper3&) = delete;
@@ -209,7 +211,9 @@ public:
private:
friend class OInterfaceIteratorHelper3<ListenerT>;
- o3tl::cow_wrapper<std::vector<css::uno::Reference<ListenerT>>> maData;
+ o3tl::cow_wrapper<std::vector<css::uno::Reference<ListenerT>>,
+ o3tl::ThreadSafeRefCountingPolicy>
+ maData;
::osl::Mutex& rMutex;
OInterfaceContainerHelper3(const OInterfaceContainerHelper3&) = delete;
OInterfaceContainerHelper3& operator=(const OInterfaceContainerHelper3&) = delete;