Clang: fix warning about implict copy-ctor with explicit move-ctor

This commit is contained in:
Adriaan de Groot 2017-06-27 07:15:31 -04:00
parent 09b25ab3e9
commit f2d2218070
2 changed files with 9 additions and 1 deletions

View File

@ -21,6 +21,12 @@
namespace Calamares
{
JobResult::JobResult( JobResult&& rhs ) :
m_ok( rhs.m_ok )
, m_message( std::move( rhs.m_message ) )
, m_details( std::move( rhs.m_details ) )
{
}
JobResult::operator bool() const
{
@ -55,7 +61,6 @@ JobResult::setDetails( const QString& details )
m_details = details;
}
JobResult
JobResult::ok()
{

View File

@ -29,6 +29,9 @@ namespace Calamares {
class DLLEXPORT JobResult
{
public:
JobResult( const JobResult& rhs ) = delete;
JobResult( JobResult&& rhs );
virtual ~JobResult() {}
virtual operator bool() const;