summaryrefslogtreecommitdiff
path: root/include/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-03-15 14:56:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-03-16 07:17:15 +0100
commit45968141934ac4ea10ad7fe4c2b074152aa2e635 (patch)
tree594badb27758e4c511815f28d7a9fe57bde49f63 /include/xmloff
parentc52cce61d1fbf1f085897bf9ff40e26b1f130998 (diff)
pahole changes in various
I'm not seeing as much as I would expect here, mostly because pahole seems to be having trouble parsing quite a few of our structures, and consequently producing useless data than I then ignore. XDash 24bytes -> 20bytes vcl::font::FeatureDefinition 64bytes -> 56bytes SvXMLTokenMapEntry 16bytes -> 12bytes SvXMLItemMapEntry 16bytes -> 12bytes SwContentAtPos 40bytes -> 32bytes Change-Id: I74c8b93f74b8352f48ef552d7d4239aa7f4237d4 Reviewed-on: https://gerrit.libreoffice.org/69304 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/xmloff')
-rw-r--r--include/xmloff/xmltkmap.hxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/xmloff/xmltkmap.hxx b/include/xmloff/xmltkmap.hxx
index 1bed470c2535..df4de8e4848f 100644
--- a/include/xmloff/xmltkmap.hxx
+++ b/include/xmloff/xmltkmap.hxx
@@ -34,17 +34,17 @@ class SvXMLTokenMap_Impl;
struct SvXMLTokenMapEntry
{
- sal_uInt16 const nPrefixKey;
enum xmloff::token::XMLTokenEnum const eLocalName;
- sal_uInt16 const nToken;
sal_Int32 nFastToken;
+ sal_uInt16 const nPrefixKey;
+ sal_uInt16 const nToken;
SvXMLTokenMapEntry( sal_uInt16 nPrefix, xmloff::token::XMLTokenEnum eName,
sal_uInt16 nTok, sal_Int32 nFastTok = 0 ) :
- nPrefixKey( nPrefix ),
eLocalName( eName ),
- nToken( nTok ),
- nFastToken( sal_uInt32( nPrefixKey + 1 ) << 16 | eLocalName )
+ nFastToken( sal_uInt32( nPrefix + 1 ) << 16 | eLocalName ),
+ nPrefixKey( nPrefix ),
+ nToken( nTok )
{
if ( nFastTok ) // alternative value for duplicate/dummy tokens
nFastToken = nFastTok;