summaryrefslogtreecommitdiff
path: root/include/xmloff
diff options
context:
space:
mode:
Diffstat (limited to 'include/xmloff')
-rw-r--r--include/xmloff/maptype.hxx23
1 files changed, 20 insertions, 3 deletions
diff --git a/include/xmloff/maptype.hxx b/include/xmloff/maptype.hxx
index dbde180797cf..a4b105b6530e 100644
--- a/include/xmloff/maptype.hxx
+++ b/include/xmloff/maptype.hxx
@@ -99,16 +99,33 @@ struct XMLPropertyMapEntry
*/
bool mbImportOnly;
+ template< std::size_t N >
XMLPropertyMapEntry(
- const char* sApiName,
- sal_Int32 nApiNameLength_,
+ const char (&sApiName)[N],
sal_uInt16 nNameSpace,
enum ::xmloff::token::XMLTokenEnum eXMLName,
sal_uInt32 nType,
sal_Int16 nContextId,
SvtSaveOptions::ODFSaneDefaultVersion nEarliestODFVersionForExport,
bool bImportOnly)
- : msApiName(sApiName), nApiNameLength(nApiNameLength_),
+ :
+ msApiName(sApiName),
+ nApiNameLength(N-1),
+ meXMLName(eXMLName), mnNameSpace(nNameSpace), mnType(nType),
+ mnContextId(nContextId), mnEarliestODFVersionForExport(nEarliestODFVersionForExport),
+ mbImportOnly(bImportOnly)
+ {}
+ XMLPropertyMapEntry(
+ std::nullptr_t ,
+ sal_uInt16 nNameSpace,
+ enum ::xmloff::token::XMLTokenEnum eXMLName,
+ sal_uInt32 nType,
+ sal_Int16 nContextId,
+ SvtSaveOptions::ODFSaneDefaultVersion nEarliestODFVersionForExport,
+ bool bImportOnly)
+ :
+ msApiName(nullptr),
+ nApiNameLength(0),
meXMLName(eXMLName), mnNameSpace(nNameSpace), mnType(nType),
mnContextId(nContextId), mnEarliestODFVersionForExport(nEarliestODFVersionForExport),
mbImportOnly(bImportOnly)