summaryrefslogtreecommitdiffstats
path: root/include/comphelper/interfacecontainer4.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/comphelper/interfacecontainer4.hxx')
-rw-r--r--include/comphelper/interfacecontainer4.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/comphelper/interfacecontainer4.hxx b/include/comphelper/interfacecontainer4.hxx
index 1362ee1df7..e4a41e3067 100644
--- a/include/comphelper/interfacecontainer4.hxx
+++ b/include/comphelper/interfacecontainer4.hxx
@@ -288,7 +288,7 @@ inline void OInterfaceContainerHelper4<T>::forEach(std::unique_lock<std::mutex>&
FuncT const& func) const
{
assert(rGuard.owns_lock());
- if (std::as_const(maData)->size() == 0)
+ if (std::as_const(maData)->empty())
{
return;
}
@@ -353,7 +353,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>
@@ -377,7 +377,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>