Kaydet (Commit) e9c62a2d authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Get rid of unnecessary comphelper::UStringEqual

Change-Id: Ia8718e49f21ccec239b2769eafa6bef90e0e9e40
üst 57b15f2d
......@@ -21,7 +21,6 @@
#define INCLUDED_FORMS_SOURCE_INC_INTERFACECONTAINER_HXX
#include <boost/unordered_map.hpp>
#include <comphelper/stl_types.hxx>
#include <comphelper/types.hxx>
#include <comphelper/uno3.hxx>
#include <com/sun/star/container/XNameReplace.hpp>
......@@ -74,7 +73,7 @@ namespace frm
};
typedef ::std::vector<InterfaceRef> OInterfaceArray;
typedef ::boost::unordered_multimap< OUString, InterfaceRef, OUStringHash, ::comphelper::UStringEqual> OInterfaceMap;
typedef ::boost::unordered_multimap< OUString, InterfaceRef, OUStringHash > OInterfaceMap;
//==================================================================
// OInterfaceContainer
......
......@@ -56,11 +56,6 @@ public:
bool isCaseSensitive() const {return m_bCaseSensitive;}
};
//------------------------------------------------------------------------
struct UStringEqual
{
sal_Bool operator() (const OUString& lhs, const OUString& rhs) const { return lhs.equals( rhs );}
};
//------------------------------------------------------------------------
struct UStringIEqual
......
......@@ -26,7 +26,6 @@
#include <com/sun/star/accessibility/XAccessible.hpp>
#include <com/sun/star/uno/XInterface.hpp>
#include <com/sun/star/drawing/XShape.hpp>
#include <comphelper/stl_types.hxx>
#include <com/sun/star/document/XEventBroadcaster.hpp>
#include <svx/svxdllapi.h>
......@@ -187,8 +186,7 @@ private:
*/
typedef ::boost::unordered_map<
OUString,ShapeTypeId,
OUStringHash,
::comphelper::UStringEqual> tServiceNameToSlotId;
OUStringHash> tServiceNameToSlotId;
mutable tServiceNameToSlotId maServiceNameToSlotId;
/** Determine the slot id of the specified shape type. With this id
......
......@@ -20,7 +20,6 @@
#include "oox/drawingml/customshapegeometry.hxx"
#include <com/sun/star/xml/sax/FastToken.hpp>
#include <comphelper/stl_types.hxx>
#include <boost/unordered_map.hpp>
#include "oox/helper/helper.hxx"
#include "oox/helper/attributelist.hxx"
......@@ -83,7 +82,7 @@ static const FormularCommandNameTable pFormularCommandNameTable[] =
{ "val", FC_VAL }
};
typedef boost::unordered_map< OUString, FormularCommand, OUStringHash, comphelper::UStringEqual > FormulaCommandHMap;
typedef boost::unordered_map< OUString, FormularCommand, OUStringHash > FormulaCommandHMap;
static const FormulaCommandHMap* pCommandHashMap;
......
......@@ -24,15 +24,14 @@
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/animations/AnimationNodeType.hpp>
#include <comphelper/stl_types.hxx>
#include <CustomAnimationEffect.hxx>
#include <boost/unordered_map.hpp>
namespace sd {
typedef boost::unordered_map< OUString, CustomAnimationEffectPtr, OUStringHash, comphelper::UStringEqual > EffectsSubTypeMap;
typedef boost::unordered_map< OUString, OUString, OUStringHash, comphelper::UStringEqual > UStringMap;
typedef boost::unordered_map< OUString, CustomAnimationEffectPtr, OUStringHash > EffectsSubTypeMap;
typedef boost::unordered_map< OUString, OUString, OUStringHash > UStringMap;
typedef std::vector< OUString > UStringList;
class CustomAnimationPreset
......@@ -71,7 +70,7 @@ private:
};
typedef boost::shared_ptr< CustomAnimationPreset > CustomAnimationPresetPtr;
typedef boost::unordered_map<OUString, CustomAnimationPresetPtr, OUStringHash, comphelper::UStringEqual> EffectDescriptorMap;
typedef boost::unordered_map<OUString, CustomAnimationPresetPtr, OUStringHash> EffectDescriptorMap;
typedef std::vector< CustomAnimationPresetPtr > EffectDescriptorList;
struct PresetCategory
......
......@@ -23,8 +23,6 @@
#include <boost/shared_ptr.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <comphelper/stl_types.hxx>
#include <list>
#include <boost/unordered_map.hpp>
......@@ -40,7 +38,7 @@ namespace sd {
class TransitionPreset;
typedef boost::shared_ptr< TransitionPreset > TransitionPresetPtr;
typedef std::list< TransitionPresetPtr > TransitionPresetList;
typedef boost::unordered_map< OUString, OUString, OUStringHash, comphelper::UStringEqual > UStringMap;
typedef boost::unordered_map< OUString, OUString, OUStringHash > UStringMap;
class TransitionPreset
{
......
......@@ -24,7 +24,6 @@
#include <oox/helper/zipstorage.hxx>
#include <oox/vml/vmldrawing.hxx>
#include <oox/export/shapes.hxx>
#include <comphelper/stl_types.hxx>
#include "epptbase.hxx"
namespace com { namespace sun { namespace star {
......@@ -156,7 +155,7 @@ private:
sal_Int32 nId;
sal_Int32 nLastIndex;
};
typedef ::boost::unordered_map< OUString, struct AuthorComments, OUStringHash, comphelper::UStringEqual > AuthorsMap;
typedef ::boost::unordered_map< OUString, struct AuthorComments, OUStringHash > AuthorsMap;
AuthorsMap maAuthors;
void WriteAuthors();
......
......@@ -24,7 +24,6 @@
#include <com/sun/star/drawing/framework/XConfigurationController.hpp>
#include <com/sun/star/drawing/framework/ConfigurationChangeEvent.hpp>
#include <comphelper/stl_types.hxx>
#include <vector>
#include <boost/unordered_map.hpp>
......@@ -119,8 +118,7 @@ private:
typedef ::boost::unordered_map
<OUString,
ListenerList,
OUStringHash,
::comphelper::UStringEqual> ListenerMap;
OUStringHash> ListenerMap;
ListenerMap maListenerMap;
/** Broadcast the given event to all listeners in the given list.
......
......@@ -25,7 +25,6 @@
#include <com/sun/star/drawing/framework/XResourceFactoryManager.hpp>
#include <com/sun/star/util/XURLTransformer.hpp>
#include <osl/mutex.hxx>
#include <comphelper/stl_types.hxx>
#include <boost/unordered_map.hpp>
namespace sd { namespace framework {
......@@ -86,8 +85,7 @@ private:
typedef ::boost::unordered_map<
OUString,
css::uno::Reference<css::drawing::framework::XResourceFactory>,
OUStringHash,
::comphelper::UStringEqual> FactoryMap;
OUStringHash> FactoryMap;
FactoryMap maFactoryMap;
typedef ::std::vector<
......
......@@ -22,7 +22,6 @@
#include "tools/ConfigurationAccess.hxx"
#include <comphelper/processfactory.hxx>
#include <comphelper/stl_types.hxx>
#include <boost/bind.hpp>
#include <boost/unordered_map.hpp>
......@@ -45,8 +44,7 @@ class ModuleController::ResourceToFactoryMap
: public ::boost::unordered_map<
OUString,
OUString,
OUStringHash,
::comphelper::UStringEqual>
OUStringHash>
{
public:
ResourceToFactoryMap (void) {}
......@@ -57,8 +55,7 @@ class ModuleController::LoadedFactoryContainer
: public ::boost::unordered_map<
OUString,
WeakReference<XInterface>,
OUStringHash,
::comphelper::UStringEqual>
OUStringHash>
{
public:
LoadedFactoryContainer (void) {}
......
......@@ -35,7 +35,6 @@
#include <cppuhelper/compbase1.hxx>
#include <svl/lstner.hxx>
#include <comphelper/stl_types.hxx>
#include <sfx2/request.hxx>
#include <sfx2/dispatch.hxx>
......@@ -291,8 +290,7 @@ class FrameworkHelper::ViewURLMap
: public ::boost::unordered_map<
OUString,
ViewShell::ShellType,
OUStringHash,
::comphelper::UStringEqual>
OUStringHash>
{
public:
ViewURLMap (void) {}
......
......@@ -29,7 +29,6 @@
#include <string.h>
#include <comphelper/stl_types.hxx>
#include <boost/unordered_map.hpp>
#include <boost/shared_ptr.hpp>
......@@ -232,7 +231,7 @@ enum FactoryId
SlideLayoutControllerFactoryId,
InsertSlideControllerFactoryId,
};
typedef ::boost::unordered_map<OUString, FactoryId, OUStringHash, comphelper::UStringEqual> FactoryMap;
typedef ::boost::unordered_map<OUString, FactoryId, OUStringHash> FactoryMap;
namespace {
......
......@@ -25,7 +25,6 @@
#include "AttrTransformerAction.hxx"
#include "TransformerActions.hxx"
#include "TransformerBase.hxx"
#include <comphelper/stl_types.hxx>
#include <rtl/ustrbuf.hxx>
#include <boost/unordered_map.hpp>
......@@ -35,8 +34,7 @@ using namespace ::com::sun::star::xml::sax;
using namespace ::xmloff::token;
class XMLTransformerOOoEventMap_Impl:
public ::boost::unordered_map< OUString, NameKey_Impl,
OUStringHash, ::comphelper::UStringEqual >
public ::boost::unordered_map< OUString, NameKey_Impl, OUStringHash >
{
public:
......
......@@ -21,7 +21,6 @@
#define INCLUDED_XMLOFF_SOURCE_TRANSFORM_TRANSFORMERTOKENMAP_HXX
#include <rtl/ustring.hxx>
#include <comphelper/stl_types.hxx>
#include <boost/unordered_map.hpp>
#include <xmloff/xmltoken.hxx>
#include "TransformerTokenMap.hxx"
......@@ -30,7 +29,7 @@
class XMLTransformerTokenMap :
public ::boost::unordered_map< OUString, ::xmloff::token::XMLTokenEnum,
OUStringHash, ::comphelper::UStringEqual >
OUStringHash >
{
public:
XMLTransformerTokenMap( ::xmloff::token::XMLTokenEnum *pInit );
......
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