summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2011-09-29 14:01:20 +0200
committerStephan Bergmann <sbergman@redhat.com>2011-09-29 14:01:20 +0200
commita08df51f64757e5c785d89b9fdd55a9dbe32bd6d (patch)
tree35d0aba128939c96104594ee3d5ff8163b5ade1b /slideshow
parent61b5ee916edcf655a3127ab4aa9ce25a232d913e (diff)
Reverted std::hash map part of previous "fix trunk gcc compile errors."
Diffstat (limited to 'slideshow')
-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