Revert "fdo#75757: remove inheritance to std::map"
This reverts commita2deca9d75
: config_map had been introduced on purpose withbfb978334c
"configmgr: faster / simpler compare for keys." Change-Id: I3ae0edc4d23977c6537bd2f462f90a702266de6d
This commit is contained in:
@@ -487,7 +487,7 @@ private:
|
||||
bool theDirectlyModified);
|
||||
};
|
||||
|
||||
typedef std::map< OUString, ModifiedChild, LengthContentsCompare > ModifiedChildren;
|
||||
typedef config_map< ModifiedChild > ModifiedChildren;
|
||||
|
||||
rtl::Reference< ChildAccess > getModifiedChild(
|
||||
ModifiedChildren::iterator const & childIterator);
|
||||
@@ -516,7 +516,7 @@ private:
|
||||
|
||||
rtl::Reference< Access > getNotificationRoot();
|
||||
|
||||
typedef std::map< OUString, ChildAccess *, LengthContentsCompare > WeakChildMap;
|
||||
typedef config_map< ChildAccess * > WeakChildMap;
|
||||
|
||||
typedef
|
||||
std::multiset<
|
||||
@@ -536,7 +536,7 @@ private:
|
||||
com::sun::star::beans::XPropertyChangeListener > >
|
||||
PropertyChangeListenersElement;
|
||||
|
||||
typedef std::map< OUString, PropertyChangeListenersElement, LengthContentsCompare >
|
||||
typedef config_map< PropertyChangeListenersElement >
|
||||
PropertyChangeListeners;
|
||||
|
||||
typedef
|
||||
@@ -545,7 +545,7 @@ private:
|
||||
com::sun::star::beans::XVetoableChangeListener > >
|
||||
VetoableChangeListenersElement;
|
||||
|
||||
typedef std::map< OUString, VetoableChangeListenersElement, LengthContentsCompare >
|
||||
typedef config_map< VetoableChangeListenersElement >
|
||||
VetoableChangeListeners;
|
||||
|
||||
typedef
|
||||
|
@@ -148,8 +148,9 @@ private:
|
||||
typedef std::set< RootAccess * > WeakRootSet;
|
||||
|
||||
typedef
|
||||
std::map< OUString, com::sun::star::uno::Reference<
|
||||
com::sun::star::beans::XPropertySet >, LengthContentsCompare >
|
||||
config_map<
|
||||
com::sun::star::uno::Reference<
|
||||
com::sun::star::beans::XPropertySet > >
|
||||
ExternalServices;
|
||||
|
||||
class WriteThread;
|
||||
|
@@ -9,6 +9,7 @@
|
||||
#ifndef CONFIG_MAP_HXX
|
||||
#define CONFIG_MAP_HXX
|
||||
|
||||
#include <map>
|
||||
#include <rtl/ustring.hxx>
|
||||
|
||||
// The realisation here is that while a map is a reasonably compact
|
||||
@@ -27,6 +28,8 @@ struct LengthContentsCompare
|
||||
}
|
||||
};
|
||||
|
||||
template< class T > struct config_map : public std::map< OUString, T, LengthContentsCompare > { };
|
||||
|
||||
#endif // CONFIG_MAP_HXX
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
@@ -86,7 +86,7 @@ struct Data: private boost::noncopyable {
|
||||
OUString const & url);
|
||||
|
||||
private:
|
||||
typedef std::map< OUString, rtl::Reference< ExtensionXcu >, LengthContentsCompare >
|
||||
typedef config_map< rtl::Reference< ExtensionXcu > >
|
||||
ExtensionXcuAdditions;
|
||||
|
||||
rtl::Reference< Node > root_;
|
||||
|
@@ -21,14 +21,13 @@
|
||||
#define INCLUDED_CONFIGMGR_SOURCE_NODEMAP_HXX
|
||||
|
||||
#include <sal/config.h>
|
||||
#include <map>
|
||||
#include "config_map.hxx"
|
||||
#include <rtl/ref.hxx>
|
||||
#include <node.hxx>
|
||||
|
||||
namespace configmgr {
|
||||
|
||||
typedef std::map< OUString, rtl::Reference< Node >, LengthContentsCompare > NodeMapImpl;
|
||||
typedef config_map< rtl::Reference< Node > > NodeMapImpl;
|
||||
class NodeMap
|
||||
{
|
||||
NodeMapImpl maImpl;
|
||||
|
Reference in New Issue
Block a user