projects
/
libcxml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa8cc0e
)
Provide node pointer accessor.
author
Carl Hetherington
<cth@carlh.net>
Tue, 24 Sep 2013 17:52:59 +0000
(18:52 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 24 Sep 2013 17:52:59 +0000
(18:52 +0100)
src/cxml.cc
patch
|
blob
|
history
src/cxml.h
patch
|
blob
|
history
diff --git
a/src/cxml.cc
b/src/cxml.cc
index 95b963b4723d0c561befa1650c77e4ba49fff10c..2ca46ed46971f97d2964f0065d22856cb2219b25 100644
(file)
--- a/
src/cxml.cc
+++ b/
src/cxml.cc
@@
-15,7
+15,7
@@
cxml::Node::Node ()
}
-cxml::Node::Node (xmlpp::Node
const
* node)
+cxml::Node::Node (xmlpp::Node* node)
: _node (node)
{
diff --git
a/src/cxml.h
b/src/cxml.h
index 5bccfb03b12656281c85b13710bc19ffe42450bc..2c4ff24b7bd10381454d194f8ccf04907e5a5371 100644
(file)
--- a/
src/cxml.h
+++ b/
src/cxml.h
@@
-52,7
+52,7
@@
public:
* not destroy the xmlpp::Node.
* @param node xmlpp::Node.
*/
- Node (xmlpp::Node
const
* node);
+ Node (xmlpp::Node* node);
std::string name () const;
@@
-157,9
+157,13
@@
public:
boost::shared_ptr<Node> optional_node_child (std::string) const;
std::list<boost::shared_ptr<Node> > node_children (std::string) const;
+
+ xmlpp::Node* node () const {
+ return _node;
+ }
protected:
- xmlpp::Node
const
* _node;
+ xmlpp::Node* _node;
private:
mutable std::list<Glib::ustring> _taken;