diff options
author | louiz’ <louiz@louiz.org> | 2016-05-22 12:52:05 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2016-06-08 01:42:43 +0200 |
commit | 66609cfba2b581be52de6096193751d1bb4ec3c3 (patch) | |
tree | b126a3b7c7f9c1441c7b7ded8d99b9bb390b2590 /src/xmpp | |
parent | 711861d40e365564e3828a251066c16e924d30f3 (diff) | |
download | biboumi-66609cfba2b581be52de6096193751d1bb4ec3c3.tar.gz biboumi-66609cfba2b581be52de6096193751d1bb4ec3c3.tar.bz2 biboumi-66609cfba2b581be52de6096193751d1bb4ec3c3.tar.xz biboumi-66609cfba2b581be52de6096193751d1bb4ec3c3.zip |
Remove all usage of std::list
Diffstat (limited to 'src/xmpp')
-rw-r--r-- | src/xmpp/biboumi_component.cpp | 4 | ||||
-rw-r--r-- | src/xmpp/biboumi_component.hpp | 2 |
2 files changed, 3 insertions, 3 deletions
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 |