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 /embedserv | |
parent | 4ae9b3ab10c882bd9c25b1f1303325a0ecd7fc06 (diff) |
Default OMultiTypeInferfaceContainerHelperVar equalImpl parameter
...and assorted OUStringHash clean up
Change-Id: I779904e1275e8df88f567beb388d1d11af9e9671
Diffstat (limited to 'embedserv')
-rw-r--r-- | embedserv/source/embed/intercept.cxx | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/embedserv/source/embed/intercept.cxx b/embedserv/source/embed/intercept.cxx index eba61b4b55d1..7db42b7dd9cb 100644 --- a/embedserv/source/embed/intercept.cxx +++ b/embedserv/source/embed/intercept.cxx @@ -32,38 +32,14 @@ using namespace ::com::sun::star; uno::Sequence< OUString > Interceptor::m_aInterceptedURL(IUL); - - - -struct equalOUString -{ - bool operator()( - const OUString& rKey1, - const OUString& rKey2 ) const - { - return !!( rKey1 == rKey2 ); - } -}; - - -struct hashOUString -{ - size_t operator()( const OUString& rName ) const - { - return rName.hashCode(); - } -}; - - - class StatusChangeListenerContainer : public ::cppu::OMultiTypeInterfaceContainerHelperVar< -OUString,hashOUString,equalOUString> +OUString,OUStringHash> { public: StatusChangeListenerContainer( ::osl::Mutex& aMutex ) : cppu::OMultiTypeInterfaceContainerHelperVar< - OUString,hashOUString,equalOUString>(aMutex) + OUString,OUStringHash>(aMutex) { } }; |