diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-12-06 11:57:54 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-12-06 12:03:59 +0100 |
commit | 0fa31bed9a7a0666df26a1016d74df3ec15b40f9 (patch) | |
tree | 679aea468eef96285855e2a4b7316ee2f0de37d6 /ucbhelper/source | |
parent | 4ae9b3ab10c882bd9c25b1f1303325a0ecd7fc06 (diff) |
Default OMultiTypeInferfaceContainerHelperVar equalImpl parameter
...and assorted OUStringHash clean up
Change-Id: I779904e1275e8df88f567beb388d1d11af9e9671
Diffstat (limited to 'ucbhelper/source')
-rw-r--r-- | ucbhelper/source/provider/contenthelper.cxx | 19 | ||||
-rw-r--r-- | ucbhelper/source/provider/resultset.cxx | 19 |
2 files changed, 2 insertions, 36 deletions
diff --git a/ucbhelper/source/provider/contenthelper.cxx b/ucbhelper/source/provider/contenthelper.cxx index 2f1fde05a1f1..8b9159a1d08e 100644 --- a/ucbhelper/source/provider/contenthelper.cxx +++ b/ucbhelper/source/provider/contenthelper.cxx @@ -106,27 +106,10 @@ PropertiesEventListenerMap; // //========================================================================= -struct equalStr -{ - bool operator()( const OUString& s1, const OUString& s2 ) const - { - return !!( s1 == s2 ); - } -}; - -struct hashStr -{ - size_t operator()( const OUString& rName ) const - { - return rName.hashCode(); - } -}; - typedef cppu::OMultiTypeInterfaceContainerHelperVar < OUString, - hashStr, - equalStr + OUStringHash > PropertyChangeListeners; //========================================================================= diff --git a/ucbhelper/source/provider/resultset.cxx b/ucbhelper/source/provider/resultset.cxx index 858ebbad77d3..beed2f1873c2 100644 --- a/ucbhelper/source/provider/resultset.cxx +++ b/ucbhelper/source/provider/resultset.cxx @@ -120,27 +120,10 @@ public: // //========================================================================= -struct equalStr_Impl -{ - bool operator()( const OUString& s1, const OUString& s2 ) const - { - return !!( s1 == s2 ); - } -}; - -struct hashStr_Impl -{ - size_t operator()( const OUString& rName ) const - { - return rName.hashCode(); - } -}; - typedef cppu::OMultiTypeInterfaceContainerHelperVar < OUString, - hashStr_Impl, - equalStr_Impl + OUStringHash > PropertyChangeListenerContainer; //========================================================================= |