summaryrefslogtreecommitdiff
path: root/src/pugixml.hpp
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.hpp
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.hpp')
-rw-r--r--src/pugixml.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pugixml.hpp b/src/pugixml.hpp
index 79f3986..062fcdb 100644
--- a/src/pugixml.hpp
+++ b/src/pugixml.hpp
@@ -1258,7 +1258,7 @@ namespace pugi
* \param flags - formatting flags
* \param depth - starting depth (used for indentation)
*/
- void print(xml_writer& writer, const char* indent = "\t", unsigned int flags = format_default, unsigned int depth = 0);
+ void print(xml_writer& writer, const char* indent = "\t", unsigned int flags = format_default, unsigned int depth = 0) const;
#ifndef PUGIXML_NO_STL
/**
@@ -1270,7 +1270,7 @@ namespace pugi
* \param depth - starting depth (used for indentation)
* \deprecated Use print() with xml_writer_stream instead
*/
- void print(std::ostream& os, const char* indent = "\t", unsigned int flags = format_default, unsigned int depth = 0);
+ void print(std::ostream& os, const char* indent = "\t", unsigned int flags = format_default, unsigned int depth = 0) const;
#endif
/**
@@ -1708,7 +1708,7 @@ namespace pugi
* \param indent - indentation string
* \param flags - formatting flags
*/
- void save(xml_writer& writer, const char* indent = "\t", unsigned int flags = format_default);
+ void save(xml_writer& writer, const char* indent = "\t", unsigned int flags = format_default) const;
/**
* Save XML to file
@@ -1718,7 +1718,7 @@ namespace pugi
* \param flags - formatting flags
* \return success flag
*/
- bool save_file(const char* name, const char* indent = "\t", unsigned int flags = format_default);
+ bool save_file(const char* name, const char* indent = "\t", unsigned int flags = format_default) const;
/**
* Compute document order for the whole tree