diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-08 14:09:08 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-08 14:13:41 +0100 |
| commit | dbcf32baf0af10eeaac33460dd617bf1de3075ca (patch) | |
| tree | 90fb707cc1960f9c36cf9b0c47d2d35a3072fe6c /src/cxml.h | |
| parent | 3540b3350c6a172b2162c32430248cad2d236898 (diff) | |
Use std::vector instead of std::list.
Diffstat (limited to 'src/cxml.h')
| -rw-r--r-- | src/cxml.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -26,7 +26,7 @@ #include <boost/algorithm/string/erase.hpp> #include <stdint.h> #include <string> -#include <list> +#include <vector> /* Hack for OS X compile failure; see https://bugs.launchpad.net/hugin/+bug/910160 */ #ifdef check @@ -223,8 +223,8 @@ public: std::shared_ptr<Node> node_child (std::string) const; std::shared_ptr<Node> optional_node_child (std::string) const; - std::list<std::shared_ptr<Node> > node_children () const; - std::list<std::shared_ptr<Node> > node_children (std::string) const; + std::vector<std::shared_ptr<Node>> node_children () const; + std::vector<std::shared_ptr<Node>> node_children (std::string) const; xmlpp::Node* node () const { return _node; @@ -234,7 +234,7 @@ protected: xmlpp::Node* _node; private: - mutable std::list<std::string> _taken; + mutable std::vector<std::string> _taken; }; typedef std::shared_ptr<cxml::Node> NodePtr; |
