include/vcl/jobset.hxx | 1 + vcl/source/gdi/jobset.cxx | 6 ++++++ 2 files changed, 7 insertions(+)
New commits: commit 5e9f98148b332f5c4df4ef785af650fd61340907 Author: Caolán McNamara <caol...@redhat.com> Date: Fri Sep 2 09:42:26 2016 +0100 coverity#1371145 Missing move assignment operator Change-Id: I3aa3267cb6a824d1a7a843f2f61d7ce08ae0cd52 Reviewed-on: https://gerrit.libreoffice.org/28619 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/include/vcl/jobset.hxx b/include/vcl/jobset.hxx index 7cc7a3d..a3aa119 100644 --- a/include/vcl/jobset.hxx +++ b/include/vcl/jobset.hxx @@ -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 diff --git a/vcl/source/gdi/jobset.cxx b/vcl/source/gdi/jobset.cxx index 11137c1..6424eaa 100644 --- a/vcl/source/gdi/jobset.cxx +++ b/vcl/source/gdi/jobset.cxx @@ -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 &&
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits