Remove all usage of std::list

This commit is contained in:
louiz’
2016-06-08 01:42:43 +02:00
parent 711861d40e
commit 66609cfba2
6 changed files with 15 additions and 24 deletions
+1 -1
View File
@@ -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.
*/
+2 -2
View File
@@ -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;
+1 -1
View File
@@ -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