summaryrefslogtreecommitdiff
path: root/include/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-28 13:18:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-29 09:40:12 +0200
commit31b0be0f21479323408e128f2e8a1a795e037e74 (patch)
tree97f4d31113dc06084758042cd6e87f73c5c5a43e /include/xmloff
parentf1ce5c3e7e621334be29df0fa425803ce77afb28 (diff)
improve pahole script and pack a few classes
(*) fix: I was substracting the padding space instead of adding it when calculating how much free space we had to improve. (*) sort input data, so we process structs located in the same DSO together, which reduces GDB's memory usage (*) handle another error condition, where gdbs output is sufficiently mixed up that we miss the end of commands terminator Change-Id: Ic4bb92b736f38a2b3d90e4a14485152b7f869b43 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95041 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/xmloff')
-rw-r--r--include/xmloff/maptype.hxx17
-rw-r--r--include/xmloff/xmlictxt.hxx6
2 files changed, 19 insertions, 4 deletions
diff --git a/include/xmloff/maptype.hxx b/include/xmloff/maptype.hxx
index b09d48b31e6b..dbde180797cf 100644
--- a/include/xmloff/maptype.hxx
+++ b/include/xmloff/maptype.hxx
@@ -32,9 +32,9 @@ struct XMLPropertyMapEntry
{
const char* msApiName; /// Property-Name
sal_Int32 nApiNameLength; /// length of property name
+ enum ::xmloff::token::XMLTokenEnum meXMLName; /// XML-Name
sal_uInt16 mnNameSpace; /** declares the Namespace in which this
property exists */
- enum ::xmloff::token::XMLTokenEnum meXMLName; /// XML-Name
/**
* The lowest 14 bits specify the basic XML type of the property value, of
@@ -98,6 +98,21 @@ struct XMLPropertyMapEntry
Property-Name exist, all except one must have this flag set.
*/
bool mbImportOnly;
+
+ XMLPropertyMapEntry(
+ const char* sApiName,
+ sal_Int32 nApiNameLength_,
+ sal_uInt16 nNameSpace,
+ enum ::xmloff::token::XMLTokenEnum eXMLName,
+ sal_uInt32 nType,
+ sal_Int16 nContextId,
+ SvtSaveOptions::ODFSaneDefaultVersion nEarliestODFVersionForExport,
+ bool bImportOnly)
+ : msApiName(sApiName), nApiNameLength(nApiNameLength_),
+ meXMLName(eXMLName), mnNameSpace(nNameSpace), mnType(nType),
+ mnContextId(nContextId), mnEarliestODFVersionForExport(nEarliestODFVersionForExport),
+ mbImportOnly(bImportOnly)
+ {}
};
diff --git a/include/xmloff/xmlictxt.hxx b/include/xmloff/xmlictxt.hxx
index 64927daf693b..29975774bf00 100644
--- a/include/xmloff/xmlictxt.hxx
+++ b/include/xmloff/xmlictxt.hxx
@@ -47,12 +47,12 @@ class XMLOFF_DLLPUBLIC SvXMLImportContext : public css::xml::sax::XFastContextHa
{
friend class SvXMLImport;
- oslInterlockedCount m_nRefCount;
SvXMLImport& mrImport;
- sal_uInt16 mnPrefix;
OUString maLocalName;
- bool mbPrefixAndLocalNameFilledIn;
std::unique_ptr<SvXMLNamespaceMap> m_pRewindMap;
+ oslInterlockedCount m_nRefCount;
+ sal_uInt16 mnPrefix;
+ bool mbPrefixAndLocalNameFilledIn;
SAL_DLLPRIVATE std::unique_ptr<SvXMLNamespaceMap> TakeRewindMap() { return std::move(m_pRewindMap); }
SAL_DLLPRIVATE void PutRewindMap(std::unique_ptr<SvXMLNamespaceMap> p) { m_pRewindMap = std::move(p); }