summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-01-05 20:44:27 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-01-05 20:44:27 +0000
commite59c153d9741f76ed6b07ea405484c3374decd8b (patch)
treebf2ddeec3f28414ad9707ba5e5732d73e4c45772 /src
parentd2443e8948ac237d02df51810d74343ae3a0551f (diff)
Compilation fix, renamed format_write_bom to format_write_bom_utf8
git-svn-id: http://pugixml.googlecode.com/svn/trunk@96 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src')
-rw-r--r--src/pugixml.cpp9
-rw-r--r--src/pugixml.hpp2
2 files changed, 4 insertions, 7 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index 0646f8b..30ed7aa 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -2605,13 +2605,10 @@ namespace pugi
std::ofstream out(name, std::ios::out);
if (!out) return false;
- if (flags & format_write_bom)
+ if (flags & format_write_bom_utf8)
{
- if (flags & format_utf8)
- {
- static const unsigned char utf8_bom[] = {0xEF, 0xBB, 0xBF};
- out.write(reinterpret_cast<const char*>(utf8_bom), 3);
- }
+ static const unsigned char utf8_bom[] = {0xEF, 0xBB, 0xBF};
+ out.write(reinterpret_cast<const char*>(utf8_bom), 3);
}
out << "<?xml version=\"1.0\"?>";
diff --git a/src/pugixml.hpp b/src/pugixml.hpp
index 5276447..927d18e 100644
--- a/src/pugixml.hpp
+++ b/src/pugixml.hpp
@@ -179,7 +179,7 @@ namespace pugi
*
* This flag is off by default.
*/
- const unsigned int format_write_bom = 0x02;
+ const unsigned int format_write_bom_utf8 = 0x02;
/**
* If this flag is on, no indentation is performed and no line breaks are written to output file.