Kaydet (Commit) 5e9f9814 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1371145 Missing move assignment operator

Change-Id: I3aa3267cb6a824d1a7a843f2f61d7ce08ae0cd52
Reviewed-on: https://gerrit.libreoffice.org/28619Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 84e8e11d
......@@ -37,6 +37,7 @@ public:
~JobSetup();
JobSetup& operator=( const JobSetup& rJob );
JobSetup& operator=( JobSetup&& rJob );
bool operator==( const JobSetup& rJobSetup ) const;
bool operator!=( const JobSetup& rJobSetup ) const
......
......@@ -162,6 +162,12 @@ JobSetup& JobSetup::operator=( const JobSetup& rJobSetup )
return *this;
}
JobSetup& JobSetup::operator=( JobSetup&& rJobSetup )
{
mpData = std::move(rJobSetup.mpData);
return *this;
}
bool ImplJobSetup::operator==( const ImplJobSetup& rImplJobSetup ) const
{
if ( mnSystem == rImplJobSetup.mnSystem &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment