From f2f008c52aaa88329c07f441de60d6fdfce9f0b3 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Sun, 15 Jan 2023 13:43:31 +0300 Subject: Merge SvXMLAttributeList to comphelper::AttributeList And simplify the latter, to always use "CDATA" type (as the former did). "CDATA" was used in all cases but one, where an empty string was used. Change-Id: I1b3bfae40e29628e4094d9a6e58a69a66865874c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145526 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- sax/source/expatwrap/sax_expat.cxx | 3 --- 1 file changed, 3 deletions(-) (limited to 'sax/source/expatwrap') diff --git a/sax/source/expatwrap/sax_expat.cxx b/sax/source/expatwrap/sax_expat.cxx index 78b7e2252da0..146a8c4193db 100644 --- a/sax/source/expatwrap/sax_expat.cxx +++ b/sax/source/expatwrap/sax_expat.cxx @@ -142,8 +142,6 @@ struct Entity }; -constexpr OUStringLiteral gsCDATA = u"CDATA"; - class SaxExpatParser_Impl { public: // module scope @@ -711,7 +709,6 @@ void SaxExpatParser_Impl::callbackStartElement( void *pvThis , assert(awAttributes[i+1]); pImpl->rAttrList->AddAttribute( XML_CHAR_TO_OUSTRING( awAttributes[i] ) , - gsCDATA, // expat doesn't know types XML_CHAR_TO_OUSTRING( awAttributes[i+1] ) ); i +=2; } -- cgit