Skip to content

Commit

Permalink
SimDataFormats/GeneratorProducts: fix bug found by clang self-move wa…
Browse files Browse the repository at this point in the history
…rnings

SimDataFormats/GeneratorProducts/interface/LHEEventProduct.h:32:20: warning: explicitly moving variable of type 'double' to itself [-Wself-move]
  • Loading branch information
gartung committed Mar 2, 2018
1 parent 677ceb2 commit c18e0d4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions SimDataFormats/GeneratorProducts/interface/LHEEventProduct.h
Expand Up @@ -29,20 +29,20 @@ class LHEEventProduct {
comments_ = std::move(other.comments_);
pdf_ = other.pdf_; // auto_ptr, so copy is actually a move
weights_ = std::move(other.weights_);
originalXWGTUP_ = std::move(originalXWGTUP_);
scales_ = std::move(scales_);
npLO_ = std::move(npLO_);
npNLO_ = std::move(npNLO_);
originalXWGTUP_ = std::move(other.originalXWGTUP_);
scales_ = std::move(other.scales_);
npLO_ = std::move(other.npLO_);
npNLO_ = std::move(other.npNLO_);
}
LHEEventProduct& operator=(LHEEventProduct&& other) {
hepeup_ = std::move(other.hepeup_);
comments_ = std::move(other.comments_);
pdf_ = other.pdf_; // auto_ptr, so copy is actually a move
weights_ = std::move(other.weights_);
originalXWGTUP_ = std::move(originalXWGTUP_);
scales_ = std::move(scales_);
npLO_ = std::move(npLO_);
npNLO_ = std::move(npNLO_);
originalXWGTUP_ = std::move(other.originalXWGTUP_);
scales_ = std::move(other.scales_);
npLO_ = std::move(other.npLO_);
npNLO_ = std::move(other.npNLO_);
return *this;
}
~LHEEventProduct() {}
Expand Down

0 comments on commit c18e0d4

Please sign in to comment.