Skip to content

Commit

Permalink
this commit marks the release point of version 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mhogomchungu committed Dec 28, 2015
1 parent 87a5a85 commit 5ca82e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions task.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ namespace Task
m_function( std::move( r ) ) ;
}
private:
std::function< void( T ) > m_function = []( T t ){ Q_UNUSED( t ) ; } ;
std::function< void( T ) > m_function = []( T&& t ){ Q_UNUSED( t ) ; } ;
std::function< void() > m_start ;
std::function< void() > m_cancel ;
std::function< void( T& ) > m_get ;
Expand All @@ -161,7 +161,7 @@ namespace Task
class ThreadHelper : public Thread
{
public:
ThreadHelper( std::function< T() > function ) :
ThreadHelper( std::function< T() >&& function ) :
m_function( std::move( function ) ),
m_future( [ this ](){ this->start() ; },
[ this ](){ this->deleteLater() ; },
Expand Down Expand Up @@ -240,7 +240,7 @@ namespace Task
class ThreadHelper< void > : public Thread
{
public:
ThreadHelper( std::function< void() > function ) :
ThreadHelper( std::function< void() >&& function ) :
m_function( std::move( function ) ),
m_future( [ this ](){ this->start() ; },
[ this ](){ this->deleteLater() ; },
Expand Down

0 comments on commit 5ca82e8

Please sign in to comment.