summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-06-27 11:56:50 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-06-27 11:56:50 +0000
commitc7a8f498a721a81588d24723b9224428a6b91b12 (patch)
tree25e5e20cf6c666e1d46a1054d52f9673ae94548c /src
parente4ac1d93281a469e8ed61333dae7259085da542d (diff)
Renamed name parameter in load_file/save_file to path
git-svn-id: http://pugixml.googlecode.com/svn/trunk@540 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src')
-rw-r--r--src/pugixml.cpp8
-rw-r--r--src/pugixml.hpp8
2 files changed, 8 insertions, 8 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index e6b24e2..c31eae4 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -4328,11 +4328,11 @@ namespace pugi
return load_buffer_inplace_own(xmlstr, strlen(xmlstr), options, encoding_utf8);
}
- xml_parse_result xml_document::load_file(const char* name, unsigned int options, encoding_t encoding)
+ xml_parse_result xml_document::load_file(const char* path, unsigned int options, encoding_t encoding)
{
create();
- FILE* file = fopen(name, "rb");
+ FILE* file = fopen(path, "rb");
if (!file) return make_parse_result(status_file_not_found);
fseek(file, 0, SEEK_END);
@@ -4439,9 +4439,9 @@ namespace pugi
}
#endif
- bool xml_document::save_file(const char* name, const char_t* indent, unsigned int flags, encoding_t encoding) const
+ bool xml_document::save_file(const char* path, const char_t* indent, unsigned int flags, encoding_t encoding) const
{
- FILE* file = fopen(name, "wb");
+ FILE* file = fopen(path, "wb");
if (!file) return false;
xml_writer_file writer(file);
diff --git a/src/pugixml.hpp b/src/pugixml.hpp
index 5770c3a..579e5b4 100644
--- a/src/pugixml.hpp
+++ b/src/pugixml.hpp
@@ -1914,12 +1914,12 @@ namespace pugi
/**
* Load document from file
*
- * \param name - file name
+ * \param path - file path
* \param options - parsing options
* \param encoding - source data encoding
* \return parsing result
*/
- xml_parse_result load_file(const char* name, unsigned int options = parse_default, encoding_t encoding = encoding_auto);
+ xml_parse_result load_file(const char* path, unsigned int options = parse_default, encoding_t encoding = encoding_auto);
/**
* Load document from buffer
@@ -1993,13 +1993,13 @@ namespace pugi
/**
* Save XML to file
*
- * \param name - file name
+ * \param path - file path
* \param indent - indentation string
* \param flags - formatting flags
* \param encoding - encoding used for writing
* \return success flag
*/
- bool save_file(const char* name, const char_t* indent = PUGIXML_TEXT("\t"), unsigned int flags = format_default, encoding_t encoding = encoding_auto) const;
+ bool save_file(const char* path, const char_t* indent = PUGIXML_TEXT("\t"), unsigned int flags = format_default, encoding_t encoding = encoding_auto) const;
/**
* Compute document order for the whole tree