XMLWriter: removed unnecessary apostrophe escaping (&apos)

This commit is contained in:
Guenter Obiltschnig 2014-01-24 16:31:10 +01:00
parent ba1049bc5b
commit 47f6ba60ab
2 changed files with 0 additions and 4 deletions

View File

@ -353,7 +353,6 @@ private:
std::string _indent;
static const std::string MARKUP_QUOTENC;
static const std::string MARKUP_APOSENC;
static const std::string MARKUP_AMPENC;
static const std::string MARKUP_LTENC;
static const std::string MARKUP_GTENC;

View File

@ -52,7 +52,6 @@ const std::string XMLWriter::NEWLINE_CR = "\r";
const std::string XMLWriter::NEWLINE_CRLF = "\r\n";
const std::string XMLWriter::NEWLINE_LF = "\n";
const std::string XMLWriter::MARKUP_QUOTENC = """;
const std::string XMLWriter::MARKUP_APOSENC = "'";
const std::string XMLWriter::MARKUP_AMPENC = "&";
const std::string XMLWriter::MARKUP_LTENC = "<";
const std::string XMLWriter::MARKUP_GTENC = ">";
@ -343,7 +342,6 @@ void XMLWriter::characters(const XMLChar ch[], int start, int length)
switch (c)
{
case '"': writeMarkup(MARKUP_QUOTENC); break;
case '\'': writeMarkup(MARKUP_APOSENC); break;
case '&': writeMarkup(MARKUP_AMPENC); break;
case '<': writeMarkup(MARKUP_LTENC); break;
case '>': writeMarkup(MARKUP_GTENC); break;
@ -787,7 +785,6 @@ void XMLWriter::writeAttributes(const AttributeMap& attributeMap)
switch (c)
{
case '"': writeMarkup(MARKUP_QUOTENC); break;
case '\'': writeMarkup(MARKUP_APOSENC); break;
case '&': writeMarkup(MARKUP_AMPENC); break;
case '<': writeMarkup(MARKUP_LTENC); break;
case '>': writeMarkup(MARKUP_GTENC); break;