Kaydet (Commit) fd073bb6 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Use rtl::OUStringHash.

üst 9a807aeb
......@@ -90,12 +90,6 @@ struct UStringIEqual
sal_Bool operator() (const ::rtl::OUString& lhs, const ::rtl::OUString& rhs) const { return lhs.equalsIgnoreAsciiCase( rhs );}
};
//------------------------------------------------------------------------
struct UStringHash
{
size_t operator() (const ::rtl::OUString& rStr) const {return rStr.hashCode();}
};
//------------------------------------------------------------------------
class UStringMixEqual
{
......
......@@ -69,7 +69,7 @@ namespace comphelper
{
private:
GenericAnyMapImpl maAnyMap;
::cppu::OMultiTypeInterfaceContainerHelperVar< ::rtl::OUString,UStringHash,UStringEqual> m_aListener;
::cppu::OMultiTypeInterfaceContainerHelperVar< ::rtl::OUString, ::rtl::OUStringHash,UStringEqual> m_aListener;
protected:
virtual void _setPropertyValues( const PropertyMapEntry** ppEntries, const Any* pValues ) throw( UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException );
......
......@@ -453,7 +453,7 @@
//====================================================================
//--------------------------------------------------------------------
typedef ::boost::unordered_map< ::rtl::OUString, sal_Int32, ::comphelper::UStringHash > HashMapString2Int;
typedef ::boost::unordered_map< ::rtl::OUString, sal_Int32, ::rtl::OUStringHash > HashMapString2Int;
typedef ::std::vector< ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > > PropSeqArray;
typedef ::std::vector< ::std::vector< sal_Int32 > > IntArrayArray;
......
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