summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pugixml.cpp7
-rw-r--r--src/pugixml.hpp3
2 files changed, 2 insertions, 8 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index 0513e0d..13034f4 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -4090,12 +4090,7 @@ namespace pugi
return xml_node(static_cast<impl::xml_document_struct*>(page->allocator));
}
- const xml_text xml_node::text() const
- {
- return xml_text(_root);
- }
-
- xml_text xml_node::text()
+ xml_text xml_node::text() const
{
return xml_text(_root);
}
diff --git a/src/pugixml.hpp b/src/pugixml.hpp
index beb5aa5..e838f0c 100644
--- a/src/pugixml.hpp
+++ b/src/pugixml.hpp
@@ -391,8 +391,7 @@ namespace pugi
xml_node root() const;
// Get text object for the current node
- const xml_text text() const;
- xml_text text();
+ xml_text text() const;
// Get child, attribute or next/previous sibling with the specified name
xml_node child(const char_t* name) const;