Kaydet (Commit) a2deca9d authored tarafından Daniel Sikeler's avatar Daniel Sikeler Kaydeden (comit) Markus Mohrhard

fdo#75757: remove inheritance to std::map

Change-Id: I189d7a1d68eb9022a32e882d68ce8c8dc567c1fd
Reviewed-on: https://gerrit.libreoffice.org/12042Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst 68e0f4d4
...@@ -487,7 +487,7 @@ private: ...@@ -487,7 +487,7 @@ private:
bool theDirectlyModified); bool theDirectlyModified);
}; };
typedef config_map< ModifiedChild > ModifiedChildren; typedef std::map< OUString, ModifiedChild, LengthContentsCompare > ModifiedChildren;
rtl::Reference< ChildAccess > getModifiedChild( rtl::Reference< ChildAccess > getModifiedChild(
ModifiedChildren::iterator const & childIterator); ModifiedChildren::iterator const & childIterator);
...@@ -516,7 +516,7 @@ private: ...@@ -516,7 +516,7 @@ private:
rtl::Reference< Access > getNotificationRoot(); rtl::Reference< Access > getNotificationRoot();
typedef config_map< ChildAccess * > WeakChildMap; typedef std::map< OUString, ChildAccess *, LengthContentsCompare > WeakChildMap;
typedef typedef
std::multiset< std::multiset<
...@@ -536,7 +536,7 @@ private: ...@@ -536,7 +536,7 @@ private:
com::sun::star::beans::XPropertyChangeListener > > com::sun::star::beans::XPropertyChangeListener > >
PropertyChangeListenersElement; PropertyChangeListenersElement;
typedef config_map< PropertyChangeListenersElement > typedef std::map< OUString, PropertyChangeListenersElement, LengthContentsCompare >
PropertyChangeListeners; PropertyChangeListeners;
typedef typedef
...@@ -545,7 +545,7 @@ private: ...@@ -545,7 +545,7 @@ private:
com::sun::star::beans::XVetoableChangeListener > > com::sun::star::beans::XVetoableChangeListener > >
VetoableChangeListenersElement; VetoableChangeListenersElement;
typedef config_map< VetoableChangeListenersElement > typedef std::map< OUString, VetoableChangeListenersElement, LengthContentsCompare >
VetoableChangeListeners; VetoableChangeListeners;
typedef typedef
......
...@@ -148,9 +148,8 @@ private: ...@@ -148,9 +148,8 @@ private:
typedef std::set< RootAccess * > WeakRootSet; typedef std::set< RootAccess * > WeakRootSet;
typedef typedef
config_map< std::map< OUString, com::sun::star::uno::Reference<
com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet >, LengthContentsCompare >
com::sun::star::beans::XPropertySet > >
ExternalServices; ExternalServices;
class WriteThread; class WriteThread;
......
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
#ifndef CONFIG_MAP_HXX #ifndef CONFIG_MAP_HXX
#define CONFIG_MAP_HXX #define CONFIG_MAP_HXX
#include <map>
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
// The realisation here is that while a map is a reasonably compact // The realisation here is that while a map is a reasonably compact
...@@ -28,8 +27,6 @@ struct LengthContentsCompare ...@@ -28,8 +27,6 @@ struct LengthContentsCompare
} }
}; };
template< class T > struct config_map : public std::map< OUString, T, LengthContentsCompare > { };
#endif // CONFIG_MAP_HXX #endif // CONFIG_MAP_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -86,7 +86,7 @@ struct Data: private boost::noncopyable { ...@@ -86,7 +86,7 @@ struct Data: private boost::noncopyable {
OUString const & url); OUString const & url);
private: private:
typedef config_map< rtl::Reference< ExtensionXcu > > typedef std::map< OUString, rtl::Reference< ExtensionXcu >, LengthContentsCompare >
ExtensionXcuAdditions; ExtensionXcuAdditions;
rtl::Reference< Node > root_; rtl::Reference< Node > root_;
......
...@@ -21,13 +21,14 @@ ...@@ -21,13 +21,14 @@
#define INCLUDED_CONFIGMGR_SOURCE_NODEMAP_HXX #define INCLUDED_CONFIGMGR_SOURCE_NODEMAP_HXX
#include <sal/config.h> #include <sal/config.h>
#include <map>
#include "config_map.hxx" #include "config_map.hxx"
#include <rtl/ref.hxx> #include <rtl/ref.hxx>
#include <node.hxx> #include <node.hxx>
namespace configmgr { namespace configmgr {
typedef config_map< rtl::Reference< Node > > NodeMapImpl; typedef std::map< OUString, rtl::Reference< Node >, LengthContentsCompare > NodeMapImpl;
class NodeMap class NodeMap
{ {
NodeMapImpl maImpl; NodeMapImpl maImpl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment