summaryrefslogtreecommitdiff
path: root/src/pugixml.cpp
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-10-11 10:24:37 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-10-11 10:24:37 +0000
commit50214146de6d3512c4a53bc3b90d29673eae5d07 (patch)
treea82af87515079452996b756f910ec3901c0c8735 /src/pugixml.cpp
parentb6433db22642307330311c42fffb6950287415df (diff)
Const-correctness fix for print/save functions
git-svn-id: http://pugixml.googlecode.com/svn/trunk@149 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src/pugixml.cpp')
-rw-r--r--src/pugixml.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index 3a01c27..ad39ba7 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -2664,7 +2664,7 @@ namespace pugi
}
}
- void xml_node::print(xml_writer& writer, const char* indent, unsigned int flags, unsigned int depth)
+ void xml_node::print(xml_writer& writer, const char* indent, unsigned int flags, unsigned int depth) const
{
if (!_root) return;
@@ -2674,7 +2674,7 @@ namespace pugi
}
#ifndef PUGIXML_NO_STL
- void xml_node::print(std::ostream& stream, const char* indent, unsigned int flags, unsigned int depth)
+ void xml_node::print(std::ostream& stream, const char* indent, unsigned int flags, unsigned int depth) const
{
if (!_root) return;
@@ -3035,7 +3035,7 @@ namespace pugi
return res;
}
- void xml_document::save(xml_writer& writer, const char* indent, unsigned int flags)
+ void xml_document::save(xml_writer& writer, const char* indent, unsigned int flags) const
{
xml_buffered_writer buffered_writer(writer);
@@ -3054,7 +3054,7 @@ namespace pugi
node_output(buffered_writer, *this, indent, flags, 0);
}
- bool xml_document::save_file(const char* name, const char* indent, unsigned int flags)
+ bool xml_document::save_file(const char* name, const char* indent, unsigned int flags) const
{
FILE* file = fopen(name, "wb");
if (!file) return false;