summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bridge/bridge.hpp2
-rw-r--r--src/xmpp/biboumi_component.cpp4
-rw-r--r--src/xmpp/biboumi_component.hpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/bridge/bridge.hpp b/src/bridge/bridge.hpp
index b852a30..469a959 100644
--- a/src/bridge/bridge.hpp
+++ b/src/bridge/bridge.hpp
@@ -250,7 +250,7 @@ private:
* request and we need a response from IRC to be able to provide the
* response iq.
*/
- std::list<irc_responder_callback_t> waiting_irc;
+ std::vector<irc_responder_callback_t> waiting_irc;
/**
* Keep track of which resource is in which channel.
*/
diff --git a/src/xmpp/biboumi_component.cpp b/src/xmpp/biboumi_component.cpp
index 6dae92c..e5aee9a 100644
--- a/src/xmpp/biboumi_component.cpp
+++ b/src/xmpp/biboumi_component.cpp
@@ -532,9 +532,9 @@ Bridge* BiboumiComponent::find_user_bridge(const std::string& full_jid)
}
}
-std::list<Bridge*> BiboumiComponent::get_bridges() const
+std::vector<Bridge*> BiboumiComponent::get_bridges() const
{
- std::list<Bridge*> res;
+ std::vector<Bridge*> res;
for (auto it = this->bridges.begin(); it != this->bridges.end(); ++it)
res.push_back(it->second.get());
return res;
diff --git a/src/xmpp/biboumi_component.hpp b/src/xmpp/biboumi_component.hpp
index 25982f2..0eb3bc4 100644
--- a/src/xmpp/biboumi_component.hpp
+++ b/src/xmpp/biboumi_component.hpp
@@ -39,7 +39,7 @@ public:
/**
* Return a list of all the managed bridges.
*/
- std::list<Bridge*> get_bridges() const;
+ std::vector<Bridge*> get_bridges() const;
/**
* Send a "close" message to all our connected peers. That message