diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2023-01-15 13:43:31 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2023-01-15 12:32:29 +0000 |
commit | f2f008c52aaa88329c07f441de60d6fdfce9f0b3 (patch) | |
tree | e5676badaa6361adcc2b5d91e9f9cdc6aa645c1c /sfx2 | |
parent | 9d2355b674d103fe8a73d2db716389980bb69e55 (diff) |
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 <mike.kaganski@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/doctemplateslocal.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sfx2/source/doc/doctemplateslocal.cxx b/sfx2/source/doc/doctemplateslocal.cxx index 5a55df72a45a..fa83d1f4ccf4 100644 --- a/sfx2/source/doc/doctemplateslocal.cxx +++ b/sfx2/source/doc/doctemplateslocal.cxx @@ -58,14 +58,12 @@ void DocTemplLocaleHelper::WriteGroupLocalizationSequence( const uno::Reference< xWriterHandler->setOutputStream( xOutStream ); - static const OUStringLiteral aCDATAString( u"CDATA" ); static const OUStringLiteral aWhiteSpace( u" " ); // write the namespace rtl::Reference<::comphelper::AttributeList> pRootAttrList = new ::comphelper::AttributeList; pRootAttrList->AddAttribute( "xmlns:groupuinames", - aCDATAString, "http://openoffice.org/2006/groupuinames" ); xWriterHandler->startDocument(); @@ -74,8 +72,8 @@ void DocTemplLocaleHelper::WriteGroupLocalizationSequence( const uno::Reference< for (const auto & i : aSequence) { rtl::Reference<::comphelper::AttributeList> pAttrList = new ::comphelper::AttributeList; - pAttrList->AddAttribute( g_sNameAttr, aCDATAString, i.First ); - pAttrList->AddAttribute( g_sUINameAttr, aCDATAString, i.Second ); + pAttrList->AddAttribute( g_sNameAttr, i.First ); + pAttrList->AddAttribute( g_sUINameAttr, i.Second ); xWriterHandler->startElement( g_sGroupElement, pAttrList ); xWriterHandler->ignorableWhitespace( aWhiteSpace ); |