summaryrefslogtreecommitdiffstats
path: root/cppuhelper/inc/interfacecontainer4.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'cppuhelper/inc/interfacecontainer4.hxx')
-rw-r--r--cppuhelper/inc/interfacecontainer4.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/cppuhelper/inc/interfacecontainer4.hxx b/cppuhelper/inc/interfacecontainer4.hxx
index 5111ae7e51..bbc082cfd7 100644
--- a/cppuhelper/inc/interfacecontainer4.hxx
+++ b/cppuhelper/inc/interfacecontainer4.hxx
@@ -358,7 +358,7 @@ OInterfaceContainerHelper4<ListenerT>::addInterface(std::unique_lock<std::mutex>
(void)rGuard;
assert(rListener.is());
maData->push_back(rListener);
- return maData->size();
+ return std::as_const(maData)->size();
}
template <class ListenerT>
@@ -382,7 +382,7 @@ sal_Int32 OInterfaceContainerHelper4<ListenerT>::removeInterface(
if (it != maData->end())
maData->erase(it);
- return maData->size();
+ return std::as_const(maData)->size();
}
template <class ListenerT>