[libxml++] A fix for the previous commit.



commit 0c1bb7cd16a77477b252b95f9fef2aa1dc20b3dd
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Mar 20 10:56:22 2012 +0100

    A fix for the previous commit.
    
    	* libxml++/nodes/node.cc: get_first_child() const: Use the name
    	parameter.

 ChangeLog              |    7 +++++++
 libxml++/nodes/node.cc |    2 +-
 2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 39e5013..6733ca5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-03-20  Murray Cumming  <murrayc murrayc com>
+
+	A fix for the previous commit.
+
+	* libxml++/nodes/node.cc: get_first_child() const: Use the name 
+	parameter.
+
 2012-03-19  Murray Cumming  <murrayc murrayc com>
 
 	Node: Add get_first_child().
diff --git a/libxml++/nodes/node.cc b/libxml++/nodes/node.cc
index 5face47..0c2cea9 100644
--- a/libxml++/nodes/node.cc
+++ b/libxml++/nodes/node.cc
@@ -105,7 +105,7 @@ Node* Node::get_first_child(const Glib::ustring& name)
 
 const Node* Node::get_first_child(const Glib::ustring& name) const
 {
-  return const_cast<Node*>(this)->get_first_child();
+  return const_cast<Node*>(this)->get_first_child(name);
 }
 
 Node::NodeList Node::get_children(const Glib::ustring& name)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]