summaryrefslogtreecommitdiff
path: root/xmloff/source/forms/propertyexport.hxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-10-07 08:46:27 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2021-10-09 07:08:24 +0200
commit4d82c1d8a3160719f694df98a4db6b9b8c7664bd (patch)
tree2e0fd754bd15d74171f07b77dbd4a00612d13f7c /xmloff/source/forms/propertyexport.hxx
parenta5ba8d94e6c36a7d79276416cc5acad9a1f6e54e (diff)
Simplify SvXMLExport::AddAttribute overloads
Remove overloads taking const char* which were not needed, because every their use eventually took a string literal convertible to OUString directly. Many other literals were converted to OUStringLiterals. Change-Id: Ia1e742a8087776cd20bf5094dc415dafd9a8834a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123155 Tested-by: Mike Kaganski <mike.kaganski@collabora.com> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'xmloff/source/forms/propertyexport.hxx')
-rw-r--r--xmloff/source/forms/propertyexport.hxx19
1 files changed, 8 insertions, 11 deletions
diff --git a/xmloff/source/forms/propertyexport.hxx b/xmloff/source/forms/propertyexport.hxx
index 6a972fefe818..b848ab6e47bc 100644
--- a/xmloff/source/forms/propertyexport.hxx
+++ b/xmloff/source/forms/propertyexport.hxx
@@ -129,7 +129,7 @@ namespace xmloff
*/
void exportStringPropertyAttribute(
const sal_uInt16 _nNamespaceKey,
- const char* _pAttributeName,
+ const OUString& _pAttributeName,
const OUString& _rPropertyName
);
@@ -147,7 +147,7 @@ namespace xmloff
*/
void exportBooleanPropertyAttribute(
const sal_uInt16 _nNamespaceKey,
- const char* _pAttributeName,
+ const OUString& _pAttributeName,
const OUString& _rPropertyName,
const BoolAttrFlags _nBooleanAttributeFlags);
@@ -170,7 +170,7 @@ namespace xmloff
*/
void exportInt16PropertyAttribute(
const sal_uInt16 _nNamespaceKey,
- const char* _pAttributeName,
+ const OUString& _pAttributeName,
const OUString& _rPropertyName,
const sal_Int16 _nDefault,
const bool force = false);
@@ -190,7 +190,7 @@ namespace xmloff
*/
void exportInt32PropertyAttribute(
const sal_uInt16 _nNamespaceKey,
- const char* _pAttributeName,
+ const OUString& _pAttributeName,
const OUString& _rPropertyName,
const sal_Int32 _nDefault);
@@ -212,7 +212,7 @@ namespace xmloff
template<typename EnumT>
void exportEnumPropertyAttribute(
const sal_uInt16 _nNamespaceKey,
- const char* _pAttributeName,
+ const OUString& _pAttributeName,
const OUString& _rPropertyName,
const SvXMLEnumMapEntry<EnumT>* _pValueMap,
const EnumT _nDefault,
@@ -224,7 +224,7 @@ namespace xmloff
}
void exportEnumPropertyAttributeImpl(
const sal_uInt16 _nNamespaceKey,
- const char* _pAttributeName,
+ const OUString& _pAttributeName,
const OUString& _rPropertyName,
const SvXMLEnumMapEntry<sal_uInt16>* _pValueMap,
const sal_uInt16 _nDefault,
@@ -291,7 +291,7 @@ namespace xmloff
*/
void exportGenericPropertyAttribute(
const sal_uInt16 _nAttributeNamespaceKey,
- const char* _pAttributeName,
+ const OUString& _pAttributeName,
const char* _pPropertyName);
/** exports a property value, which is a string sequence, as attribute
@@ -315,7 +315,7 @@ namespace xmloff
*/
void exportStringSequenceAttribute(
const sal_uInt16 _nAttributeNamespaceKey,
- const char* _pAttributeName,
+ const OUString& _pAttributeName,
const OUString& _rPropertyName);
/** determines whether the given property is to be exported
@@ -354,14 +354,11 @@ namespace xmloff
static ::xmloff::token::XMLTokenEnum implGetPropertyXMLType(const css::uno::Type& _rType);
#ifdef DBG_UTIL
- void AddAttribute(sal_uInt16 _nPrefix, const char* _pName, const OUString& _rValue);
void AddAttribute( sal_uInt16 _nPrefix, const OUString& _rName, const OUString& _rValue );
void AddAttribute(sal_uInt16 _nPrefix, ::xmloff::token::XMLTokenEnum _eName, const OUString& _rValue);
void AddAttribute(sal_uInt16 _nPrefix, ::xmloff::token::XMLTokenEnum _eName, ::xmloff::token::XMLTokenEnum _eValue );
#else
// in the product version, inline this, so it does not cost us extra time calling into our method
- void AddAttribute(sal_uInt16 _nPrefix, const char* _pName, const OUString& _rValue)
- { m_rContext.getGlobalContext().AddAttribute(_nPrefix, _pName, _rValue); }
void AddAttribute( sal_uInt16 _nPrefix, const OUString& _rName, const OUString& _rValue )
{ m_rContext.getGlobalContext().AddAttribute( _nPrefix, _rName, _rValue ); }
void AddAttribute(sal_uInt16 _nPrefix, ::xmloff::token::XMLTokenEnum _eName, const OUString& _rValue)