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:
bool theDirectlyModified);
};
typedef config_map< ModifiedChild > ModifiedChildren;
typedef std::map< OUString, ModifiedChild, LengthContentsCompare > ModifiedChildren;
rtl::Reference< ChildAccess > getModifiedChild(
ModifiedChildren::iterator const & childIterator);
......@@ -516,7 +516,7 @@ private:
rtl::Reference< Access > getNotificationRoot();
typedef config_map< ChildAccess * > WeakChildMap;
typedef std::map< OUString, ChildAccess *, LengthContentsCompare > WeakChildMap;
typedef
std::multiset<
......@@ -536,7 +536,7 @@ private:
com::sun::star::beans::XPropertyChangeListener > >
PropertyChangeListenersElement;
typedef config_map< PropertyChangeListenersElement >
typedef std::map< OUString, PropertyChangeListenersElement, LengthContentsCompare >
PropertyChangeListeners;
typedef
......@@ -545,7 +545,7 @@ private:
com::sun::star::beans::XVetoableChangeListener > >
VetoableChangeListenersElement;
typedef config_map< VetoableChangeListenersElement >
typedef std::map< OUString, VetoableChangeListenersElement, LengthContentsCompare >
VetoableChangeListeners;
typedef
......
......@@ -148,9 +148,8 @@ private:
typedef std::set< RootAccess * > WeakRootSet;
typedef
config_map<
com::sun::star::uno::Reference<
com::sun::star::beans::XPropertySet > >
std::map< OUString, com::sun::star::uno::Reference<
com::sun::star::beans::XPropertySet >, LengthContentsCompare >
ExternalServices;
class WriteThread;
......
......@@ -9,7 +9,6 @@
#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
......@@ -28,8 +27,6 @@ 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 config_map< rtl::Reference< ExtensionXcu > >
typedef std::map< OUString, rtl::Reference< ExtensionXcu >, LengthContentsCompare >
ExtensionXcuAdditions;
rtl::Reference< Node > root_;
......
......@@ -21,13 +21,14 @@
#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 config_map< rtl::Reference< Node > > NodeMapImpl;
typedef std::map< OUString, rtl::Reference< Node >, LengthContentsCompare > NodeMapImpl;
class NodeMap
{
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