summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/o3tl/sorted_vector.hxx5
-rw-r--r--include/svl/listener.hxx4
2 files changed, 7 insertions, 2 deletions
diff --git a/include/o3tl/sorted_vector.hxx b/include/o3tl/sorted_vector.hxx
index 8324e333198a..35882ab9afca 100644
--- a/include/o3tl/sorted_vector.hxx
+++ b/include/o3tl/sorted_vector.hxx
@@ -113,6 +113,11 @@ public:
m_vector.clear();
}
+ void swap(sorted_vector & other)
+ {
+ m_vector.swap(other.m_vector);
+ }
+
void reserve(size_type amount)
{
m_vector.reserve(amount);
diff --git a/include/svl/listener.hxx b/include/svl/listener.hxx
index 5ba14aea953e..38d72552618a 100644
--- a/include/svl/listener.hxx
+++ b/include/svl/listener.hxx
@@ -21,7 +21,7 @@
#include <svl/svldllapi.h>
-#include <unordered_set>
+#include <o3tl/sorted_vector.hxx>
class SvtBroadcaster;
class SfxHint;
@@ -29,7 +29,7 @@ class SfxHint;
class SVL_DLLPUBLIC SvtListener
{
friend class SvtBroadcaster;
- typedef std::unordered_set<SvtBroadcaster*> BroadcastersType;
+ typedef o3tl::sorted_vector<SvtBroadcaster*> BroadcastersType;
BroadcastersType maBroadcasters;
const SvtListener& operator=(const SvtListener &) = delete;