diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-27 21:10:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-28 09:53:50 +0200 |
commit | cd811a7abcf32920843fc03f90a72f90bc052761 (patch) | |
tree | 377cef3adb24bcf38d3ea7d7f4e0ddde689f9a80 /include/svl/itemprop.hxx | |
parent | 0b94169d820482434dc98a37c3c1633ca46fd0dc (diff) |
pack SfxItemPropertyMapEntry and SfxItemPropertySimpleEntry
SfxItemPropertyMapEntry reduces size from 32 bytes
to 24 bytes on x64 machines.
SfxItemPropertySimpleEntry goes from 24 bytes to 16 bytes.
Change-Id: I3b4b0fce93e666ad9880b53eede96b3150b30e66
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95003
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svl/itemprop.hxx')
-rw-r--r-- | include/svl/itemprop.hxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/svl/itemprop.hxx b/include/svl/itemprop.hxx index 6892f7b195f1..a66650381d05 100644 --- a/include/svl/itemprop.hxx +++ b/include/svl/itemprop.hxx @@ -35,8 +35,8 @@ struct SfxItemPropertyMapEntry { OUString aName; ///< name of property - sal_uInt16 nWID; ///< WhichId of SfxPoolItem css::uno::Type aType; ///< UNO type of property + sal_uInt16 nWID; ///< WhichId of SfxPoolItem /// flag bitmap, @see css::beans::PropertyAttribute sal_Int16 nFlags; /// "member ID" to tell QueryValue/PutValue which property it is @@ -47,8 +47,8 @@ struct SfxItemPropertyMapEntry SfxItemPropertyMapEntry(OUString _aName, sal_uInt16 _nWID, css::uno::Type const & _rType, sal_Int16 _nFlags, sal_uInt8 const _nMemberId, PropertyMoreFlags _nMoreFlags = PropertyMoreFlags::NONE) : aName( _aName ) - , nWID( _nWID ) , aType( _rType ) + , nWID( _nWID ) , nFlags( _nFlags ) , nMemberId( _nMemberId ) , nMoreFlags( _nMoreFlags ) @@ -69,8 +69,8 @@ struct SfxItemPropertyMapEntry struct SfxItemPropertySimpleEntry { - sal_uInt16 nWID; css::uno::Type aType; + sal_uInt16 nWID; /// flag bitmap, @see css::beans::PropertyAttribute sal_Int16 nFlags; sal_uInt8 nMemberId; @@ -85,8 +85,8 @@ struct SfxItemPropertySimpleEntry SfxItemPropertySimpleEntry(sal_uInt16 _nWID, css::uno::Type const & _rType, sal_Int16 _nFlags) - : nWID( _nWID ) - , aType( _rType ) + : aType( _rType ) + , nWID( _nWID ) , nFlags( _nFlags ) , nMemberId( 0 ) { @@ -94,8 +94,8 @@ struct SfxItemPropertySimpleEntry } SfxItemPropertySimpleEntry( const SfxItemPropertyMapEntry* pMapEntry ) - : nWID( pMapEntry->nWID ) - , aType( pMapEntry->aType ) + : aType( pMapEntry->aType ) + , nWID( pMapEntry->nWID ) , nFlags( pMapEntry->nFlags ) , nMemberId( pMapEntry->nMemberId ) , nMoreFlags( pMapEntry->nMoreFlags ) |