Skip to content

Commit 47f6ba6

Browse files
committed
XMLWriter: removed unnecessary apostrophe escaping (&apos)
1 parent ba1049b commit 47f6ba6

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

XML/include/Poco/XML/XMLWriter.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,6 @@ class XML_API XMLWriter: public ContentHandler, public LexicalHandler, public DT
353353
std::string _indent;
354354

355355
static const std::string MARKUP_QUOTENC;
356-
static const std::string MARKUP_APOSENC;
357356
static const std::string MARKUP_AMPENC;
358357
static const std::string MARKUP_LTENC;
359358
static const std::string MARKUP_GTENC;

XML/src/XMLWriter.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ const std::string XMLWriter::NEWLINE_CR = "\r";
5252
const std::string XMLWriter::NEWLINE_CRLF = "\r\n";
5353
const std::string XMLWriter::NEWLINE_LF = "\n";
5454
const std::string XMLWriter::MARKUP_QUOTENC = """;
55-
const std::string XMLWriter::MARKUP_APOSENC = "'";
5655
const std::string XMLWriter::MARKUP_AMPENC = "&";
5756
const std::string XMLWriter::MARKUP_LTENC = "<";
5857
const std::string XMLWriter::MARKUP_GTENC = ">";
@@ -343,7 +342,6 @@ void XMLWriter::characters(const XMLChar ch[], int start, int length)
343342
switch (c)
344343
{
345344
case '"': writeMarkup(MARKUP_QUOTENC); break;
346-
case '\'': writeMarkup(MARKUP_APOSENC); break;
347345
case '&': writeMarkup(MARKUP_AMPENC); break;
348346
case '<': writeMarkup(MARKUP_LTENC); break;
349347
case '>': writeMarkup(MARKUP_GTENC); break;
@@ -787,7 +785,6 @@ void XMLWriter::writeAttributes(const AttributeMap& attributeMap)
787785
switch (c)
788786
{
789787
case '"': writeMarkup(MARKUP_QUOTENC); break;
790-
case '\'': writeMarkup(MARKUP_APOSENC); break;
791788
case '&': writeMarkup(MARKUP_AMPENC); break;
792789
case '<': writeMarkup(MARKUP_LTENC); break;
793790
case '>': writeMarkup(MARKUP_GTENC); break;

0 commit comments

Comments
 (0)