summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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