summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-05-11 20:15:26 +0200
committerMichael Stahl <mstahl@redhat.com>2016-05-11 21:37:48 +0200
commit58a64174a8679b10464180d3807e4b89a1535b42 (patch)
treed39be064601846d501774f9b11d02e8f9f3d5ec1 /slideshow
parent7ac1062c66427186f06697885a96e54ff1af6e0e (diff)
slideshow: tweak ListenerOperations<std::weak_ptr<ListenerTargetT>>
Pretty sure FuncT(...value_type) is wrong since value_type is std::weak_ptr which does not implicitly convert to a callable pointer; this caused build failure on Mac OS X with clang/libc++. Change-Id: Id9de4a7825347a84cce2aab5367a457a003bb352
Diffstat (limited to 'slideshow')
-rw-r--r--slideshow/source/inc/listenercontainer.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/slideshow/source/inc/listenercontainer.hxx b/slideshow/source/inc/listenercontainer.hxx
index 0b20464e4995..7999066bb3f5 100644
--- a/slideshow/source/inc/listenercontainer.hxx
+++ b/slideshow/source/inc/listenercontainer.hxx
@@ -155,7 +155,7 @@ struct ListenerOperations< std::weak_ptr<ListenerTargetT> >
std::shared_ptr<ListenerTargetT> pListener( rCurr.lock() );
if( pListener.get() &&
- FunctionApply< typename ::std::result_of< FuncT( const typename ContainerT::value_type& ) >::type,
+ FunctionApply<typename ::std::result_of<FuncT (std::shared_ptr<ListenerTargetT> const&)>::type,
std::shared_ptr<ListenerTargetT> >::apply(func,pListener) )
{
bRet = true;