diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-10-09 18:17:03 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-10-09 18:17:03 +0100 |
| commit | 506fb1b04d4bfa654db64c07fa940462dee90ba6 (patch) | |
| tree | bb9f66eca48c3245f52f84ee02a97c0abdc33b80 | |
| parent | d4c2770e3ff02960450d9bcf6d8b8fa7032cb7a4 (diff) | |
Remove thought-pointless use of Glib::ustring.
| -rw-r--r-- | src/cxml.h | 18 |
1 files changed, 8 insertions, 10 deletions
@@ -33,8 +33,6 @@ #undef check #endif -#include <glibmm.h> - namespace xmlpp { class Node; class DomParser; @@ -71,7 +69,7 @@ class Node { public: Node (); - + /** Construct a Node from an xmlpp::Node. This class will * not destroy the xmlpp::Node. * @param node xmlpp::Node. @@ -138,7 +136,7 @@ public: u >> n; return n; } - + /** This will mark a child as to be ignored when calling done() */ void ignore_child (std::string) const; @@ -205,12 +203,12 @@ public: xmlpp::Node* node () const { return _node; } - + protected: xmlpp::Node* _node; - + private: - mutable std::list<Glib::ustring> _taken; + mutable std::list<std::string> _taken; }; typedef boost::shared_ptr<cxml::Node> NodePtr; @@ -228,14 +226,14 @@ public: void read_file (boost::filesystem::path); void read_stream (std::istream &); void read_string (std::string); - + std::string root_name () const { return _root_name; } - + private: void take_root_node (); - + xmlpp::DomParser* _parser; std::string _root_name; }; |
