diff options
author | tymyjan <tymyjan@yahoo.co.uk> | 2016-04-03 17:42:53 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-04-04 05:49:06 +0000 |
commit | c20cc7e79b3b3d8bcf9136bfdc2bab6dd6a4be06 (patch) | |
tree | daecf1a18f37c46e0cca823f976b419de8e4f2c2 /framework | |
parent | bfb9612226314cd037c8eda30cc6ebbb46dc8512 (diff) |
tdf#97499 Fixed containers parameters clearing #4
Change-Id: I7c96181399f4d7e62d4aceca404b22d68f903513
Reviewed-on: https://gerrit.libreoffice.org/23754
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'framework')
12 files changed, 18 insertions, 27 deletions
diff --git a/framework/inc/uielement/menubarmanager.hxx b/framework/inc/uielement/menubarmanager.hxx index 2a1a019fb8e3..394d0a3a9ad9 100644 --- a/framework/inc/uielement/menubarmanager.hxx +++ b/framework/inc/uielement/menubarmanager.hxx @@ -64,7 +64,7 @@ struct PopupControllerEntry css::uno::WeakReference< css::frame::XDispatchProvider > m_xDispatchProvider; }; -typedef std::unordered_map< OUString, PopupControllerEntry, OUStringHash, std::equal_to< OUString > > PopupControllerCache; +typedef std::unordered_map< OUString, PopupControllerEntry, OUStringHash > PopupControllerCache; class BmkMenu; class AddonMenu; diff --git a/framework/inc/xml/toolboxdocumenthandler.hxx b/framework/inc/xml/toolboxdocumenthandler.hxx index 8b9cc347491d..438ba2df604c 100644 --- a/framework/inc/xml/toolboxdocumenthandler.hxx +++ b/framework/inc/xml/toolboxdocumenthandler.hxx @@ -106,8 +106,7 @@ class FWE_DLLPUBLIC OReadToolBoxDocumentHandler : class ToolBoxHashMap : public std::unordered_map<OUString, ToolBox_XML_Entry, - OUStringHash, - std::equal_to< OUString > > + OUStringHash > { }; diff --git a/framework/source/fwe/classes/addonsoptions.cxx b/framework/source/fwe/classes/addonsoptions.cxx index 0e38d9c8a2d7..82a519b6244f 100644 --- a/framework/source/fwe/classes/addonsoptions.cxx +++ b/framework/source/fwe/classes/addonsoptions.cxx @@ -229,10 +229,10 @@ class AddonsOptions_Impl : public ConfigItem void addImage(ImageSize eSize, const Image &rImage, const OUString &rURL); }; - typedef std::unordered_map< OUString, ImageEntry, OUStringHash, std::equal_to< OUString > > ImageManager; - typedef std::unordered_map< OUString, sal_uInt32, OUStringHash, std::equal_to< OUString > > StringToIndexMap; + typedef std::unordered_map< OUString, ImageEntry, OUStringHash > ImageManager; + typedef std::unordered_map< OUString, sal_uInt32, OUStringHash > StringToIndexMap; typedef std::vector< Sequence< Sequence< PropertyValue > > > AddonToolBars; - typedef std::unordered_map< OUString, MergeToolbarInstructionContainer, OUStringHash, std::equal_to< OUString > > ToolbarMergingInstructions; + typedef std::unordered_map< OUString, MergeToolbarInstructionContainer, OUStringHash > ToolbarMergingInstructions; /*-**************************************************************************************************** @short return list of key names of our configuration management which represent oue module tree diff --git a/framework/source/inc/accelerators/storageholder.hxx b/framework/source/inc/accelerators/storageholder.hxx index 54e75cd1ad21..a725e7dc6de8 100644 --- a/framework/source/inc/accelerators/storageholder.hxx +++ b/framework/source/inc/accelerators/storageholder.hxx @@ -58,8 +58,7 @@ class StorageHolder /** @short TODO */ typedef std::unordered_map< OUString , TStorageInfo , - OUStringHash , - std::equal_to< OUString > > TPath2StorageInfo; + OUStringHash > TPath2StorageInfo; // member private: diff --git a/framework/source/services/tabwindowservice.cxx b/framework/source/services/tabwindowservice.cxx index 845f964294c0..06aff9fb7040 100644 --- a/framework/source/services/tabwindowservice.cxx +++ b/framework/source/services/tabwindowservice.cxx @@ -71,8 +71,7 @@ struct TTabPageInfo typedef std::unordered_map< ::sal_Int32 , TTabPageInfo , - Int32HashCode , - std::equal_to< ::sal_Int32 > > TTabPageInfoHash; + Int32HashCode > TTabPageInfoHash; /*-************************************************************************************************************ @short implements a helper service providing a dockable tab control window diff --git a/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx b/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx index 60246784be71..1baca8032929 100644 --- a/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx +++ b/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx @@ -168,7 +168,7 @@ private: css::uno::Reference< css::container::XIndexAccess > xSettings; }; - typedef std::unordered_map< OUString, UIElementData, OUStringHash, std::equal_to< OUString > > UIElementDataHashMap; + typedef std::unordered_map< OUString, UIElementData, OUStringHash > UIElementDataHashMap; struct UIElementType { @@ -187,7 +187,7 @@ private: typedef std::vector< UIElementType > UIElementTypesVector; typedef std::vector< css::ui::ConfigurationEvent > ConfigEventNotifyContainer; - typedef std::unordered_map< OUString, UIElementInfo, OUStringHash, std::equal_to< OUString > > UIElementInfoHashMap; + typedef std::unordered_map< OUString, UIElementInfo, OUStringHash > UIElementInfoHashMap; void impl_Initialize(); void implts_notifyContainerListener( const css::ui::ConfigurationEvent& aEvent, NotifyOp eOp ); diff --git a/framework/source/uiconfiguration/uicategorydescription.cxx b/framework/source/uiconfiguration/uicategorydescription.cxx index 0e9533018fc8..21793ca52fb3 100644 --- a/framework/source/uiconfiguration/uicategorydescription.cxx +++ b/framework/source/uiconfiguration/uicategorydescription.cxx @@ -97,8 +97,7 @@ class ConfigurationAccess_UICategory : public ::cppu::WeakImplHelper<XNameAccess private: typedef std::unordered_map< OUString, OUString, - OUStringHash, - std::equal_to< OUString > > IdToInfoCache; + OUStringHash > IdToInfoCache; void initializeConfigAccess(); diff --git a/framework/source/uiconfiguration/uiconfigurationmanager.cxx b/framework/source/uiconfiguration/uiconfigurationmanager.cxx index 80e66c3e93f2..54a26adbf8ee 100644 --- a/framework/source/uiconfiguration/uiconfigurationmanager.cxx +++ b/framework/source/uiconfiguration/uiconfigurationmanager.cxx @@ -150,7 +150,7 @@ private: struct UIElementType; friend struct UIElementType; - typedef std::unordered_map< OUString, UIElementData, OUStringHash, std::equal_to< OUString > > UIElementDataHashMap; + typedef std::unordered_map< OUString, UIElementData, OUStringHash > UIElementDataHashMap; struct UIElementType { @@ -169,7 +169,7 @@ private: typedef std::vector< UIElementType > UIElementTypesVector; typedef std::vector< css::ui::ConfigurationEvent > ConfigEventNotifyContainer; - typedef std::unordered_map< OUString, UIElementInfo, OUStringHash, std::equal_to< OUString > > UIElementInfoHashMap; + typedef std::unordered_map< OUString, UIElementInfo, OUStringHash > UIElementInfoHashMap; void impl_Initialize(); void implts_notifyContainerListener( const css::ui::ConfigurationEvent& aEvent, NotifyOp eOp ); diff --git a/framework/source/uiconfiguration/windowstateconfiguration.cxx b/framework/source/uiconfiguration/windowstateconfiguration.cxx index 06560ba1fe9a..873f35309408 100644 --- a/framework/source/uiconfiguration/windowstateconfiguration.cxx +++ b/framework/source/uiconfiguration/windowstateconfiguration.cxx @@ -218,8 +218,7 @@ class ConfigurationAccess_WindowState : public ::cppu::WeakImplHelper< XNameCon private: typedef std::unordered_map< OUString, WindowStateInfo, - OUStringHash, - std::equal_to< OUString > > ResourceURLToInfoCache; + OUStringHash > ResourceURLToInfoCache; osl::Mutex m_aMutex; OUString m_aConfigWindowAccess; @@ -1317,13 +1316,11 @@ public: typedef std::unordered_map< OUString, OUString, - OUStringHash, - std::equal_to< OUString > > ModuleToWindowStateFileMap; + OUStringHash > ModuleToWindowStateFileMap; typedef std::unordered_map< OUString, css::uno::Reference< css::container::XNameAccess >, - OUStringHash, - std::equal_to< OUString > > ModuleToWindowStateConfigHashMap; + OUStringHash > ModuleToWindowStateConfigHashMap; private: css::uno::Reference< css::uno::XComponentContext> m_xContext; diff --git a/framework/source/uielement/controlmenucontroller.cxx b/framework/source/uielement/controlmenucontroller.cxx index 956639e6b2cc..7fc5e5e73f59 100644 --- a/framework/source/uielement/controlmenucontroller.cxx +++ b/framework/source/uielement/controlmenucontroller.cxx @@ -221,8 +221,7 @@ private: class UrlToDispatchMap : public std::unordered_map< OUString, uno::Reference< frame::XDispatch >, - OUStringHash, - std::equal_to< OUString > > + OUStringHash > { public: inline void free() diff --git a/framework/source/uielement/toolbarsmenucontroller.cxx b/framework/source/uielement/toolbarsmenucontroller.cxx index 0094ed63dcd9..f2a514934302 100644 --- a/framework/source/uielement/toolbarsmenucontroller.cxx +++ b/framework/source/uielement/toolbarsmenucontroller.cxx @@ -83,7 +83,7 @@ static const char STATIC_INTERNAL_CMD_PART[] = ".cmd:"; namespace framework { -typedef std::unordered_map< OUString, OUString, OUStringHash, std::equal_to< OUString > > ToolbarHashMap; +typedef std::unordered_map< OUString, OUString, OUStringHash > ToolbarHashMap; struct ToolBarEntry { diff --git a/framework/source/uielement/uicommanddescription.cxx b/framework/source/uielement/uicommanddescription.cxx index bbdea7ed0351..9db3051b3147 100644 --- a/framework/source/uielement/uicommanddescription.cxx +++ b/framework/source/uielement/uicommanddescription.cxx @@ -145,8 +145,7 @@ class ConfigurationAccess_UICommand : // Order is necessary for right initializa private: typedef std::unordered_map< OUString, CmdToInfoMap, - OUStringHash, - std::equal_to< OUString > > CommandToInfoCache; + OUStringHash > CommandToInfoCache; void initializeConfigAccess(); |