summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slideshow/source/inc/tools.hxx17
1 files changed, 8 insertions, 9 deletions
diff --git a/slideshow/source/inc/tools.hxx b/slideshow/source/inc/tools.hxx
index ad3e79aacccc..0293fb8a9abe 100644
--- a/slideshow/source/inc/tools.hxx
+++ b/slideshow/source/inc/tools.hxx
@@ -78,6 +78,13 @@ namespace slideshow
// xxx todo: remove with boost::hash when 1.33 is available
template <typename T>
+ struct hash : ::std::unary_function<T, ::std::size_t>
+ {
+ ::std::size_t operator()( T const& val ) const {
+ return hash_value(val);
+ }
+ };
+ template <typename T>
inline ::std::size_t hash_value( T * const& p )
{
::std::size_t d = static_cast< ::std::size_t >(
@@ -96,17 +103,9 @@ namespace slideshow
::com::sun::star::uno::Reference<
::com::sun::star::uno::XInterface> const xRoot(
x, ::com::sun::star::uno::UNO_QUERY );
- return ::std::hash<void *>()(xRoot.get());
+ return hash<void *>()(xRoot.get());
}
- template <typename T>
- struct hash : ::std::unary_function<T, ::std::size_t>
- {
- ::std::size_t operator()( T const& val ) const {
- return hash_value(val);
- }
- };
-
/** Cycle mode of intrinsic animations
*/
enum CycleMode