From e59c153d9741f76ed6b07ea405484c3374decd8b Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Mon, 5 Jan 2009 20:44:27 +0000 Subject: 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 --- src/pugixml.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/pugixml.cpp') 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(utf8_bom), 3); - } + static const unsigned char utf8_bom[] = {0xEF, 0xBB, 0xBF}; + out.write(reinterpret_cast(utf8_bom), 3); } out << ""; -- cgit v1.2.3