diff options
author | Noel Grandin <noel@peralex.com> | 2021-04-12 09:40:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-12 12:31:11 +0200 |
commit | 40f9888ddc5def405d5a7724cb70f26eca527f01 (patch) | |
tree | 5ae2172f71a91a793ecd5ee78ea47dc5d3267bed /include | |
parent | 919d2e63ac628440726f8bfc671536ec7febafed (diff) |
tdf#130326 flatten SfxItemPropertyMap
which shaves 2% off load time here since we construct a boatload
of these
Change-Id: I7a57447026f3a1bd6a31f10adf15bee2d1d17c8a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113967
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/svl/itemprop.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/svl/itemprop.hxx b/include/svl/itemprop.hxx index 68d1a6681c90..da183abecf7b 100644 --- a/include/svl/itemprop.hxx +++ b/include/svl/itemprop.hxx @@ -26,7 +26,7 @@ #include <svl/itemset.hxx> #include <svl/svldllapi.h> #include <vector> -#include <memory> +#include <unordered_map> #include <string_view> // values from com/sun/star/beans/PropertyAttribute @@ -115,10 +115,11 @@ struct SfxItemPropertyNamedEntry : public SfxItemPropertySimpleEntry }; typedef std::vector< SfxItemPropertyNamedEntry > PropertyEntryVector_t; -class SfxItemPropertyMap_Impl; class SVL_DLLPUBLIC SfxItemPropertyMap { - std::unique_ptr<SfxItemPropertyMap_Impl> m_pImpl; + std::unordered_map< std::u16string_view, + SfxItemPropertySimpleEntry > m_aMap; + mutable css::uno::Sequence< css::beans::Property > m_aPropSeq; public: SfxItemPropertyMap( const SfxItemPropertyMapEntry* pEntries ); SfxItemPropertyMap( const SfxItemPropertyMap& rSource ); |