diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-29 15:04:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-06-02 08:39:44 +0200 |
commit | 468e8d53fbb07dce271a1f7fabf5711993e01eb7 (patch) | |
tree | 60a0474d2789904e17ff22623f01175c11836647 /sfx2 | |
parent | e9dbdc9fc6ff943650e6e18986ed1cce913971ef (diff) |
inline some use-once typedefs
Change-Id: I335e0c5cf7944efa487e4535a9e6a5baab2f36dd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95140
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/bindings.cxx | 5 | ||||
-rw-r--r-- | sfx2/source/doc/docfac.cxx | 12 |
2 files changed, 7 insertions, 10 deletions
diff --git a/sfx2/source/control/bindings.cxx b/sfx2/source/control/bindings.cxx index 1baa03845ea0..cdaf8362c578 100644 --- a/sfx2/source/control/bindings.cxx +++ b/sfx2/source/control/bindings.cxx @@ -62,8 +62,6 @@ using namespace ::com::sun::star::util; #define TIMEOUT_FIRST 300 #define TIMEOUT_UPDATING 20 -typedef std::unordered_map< sal_uInt16, bool > InvalidateSlotMap; - struct SfxFoundCache_Impl { sal_uInt16 nWhichId; // If available: Which-Id, else: nSlotId @@ -121,7 +119,8 @@ public: bool bInNextJob; // for Assertions bool bFirstRound; // First round in Update sal_uInt16 nOwnRegLevel; // Counts the real Locks, except those of the Super Bindings - InvalidateSlotMap m_aInvalidateSlots; // store slots which are invalidated while in update + std::unordered_map< sal_uInt16, bool > + m_aInvalidateSlots; // store slots which are invalidated while in update }; SfxBindings::SfxBindings() diff --git a/sfx2/source/doc/docfac.cxx b/sfx2/source/doc/docfac.cxx index 623b03fceacb..55dfdf46b850 100644 --- a/sfx2/source/doc/docfac.cxx +++ b/sfx2/source/doc/docfac.cxx @@ -47,15 +47,13 @@ using namespace ::com::sun::star; -typedef std::vector<SfxViewFactory*> SfxViewFactoryArr_Impl; - struct SfxObjectFactory_Impl { - SfxViewFactoryArr_Impl aViewFactoryArr;// List of <SfxViewFactory>s - OUString aServiceName; - SfxFilterContainer* pFilterContainer; - SfxModule* pModule; - SvGlobalName aClassName; + std::vector<SfxViewFactory*> aViewFactoryArr;// List of <SfxViewFactory>s + OUString aServiceName; + SfxFilterContainer* pFilterContainer; + SfxModule* pModule; + SvGlobalName aClassName; SfxObjectFactory_Impl() : pFilterContainer ( nullptr ), |