From: Clifford Wolf Date: Sun, 27 Jul 2014 07:20:59 +0000 (+0200) Subject: Using std::move() in SigSpec move constructor X-Git-Tag: yosys-0.4~403 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ddc5b4184836e795e143fc00786b4b87a6e69bc4;p=yosys.git Using std::move() in SigSpec move constructor --- diff --git a/kernel/rtlil.h b/kernel/rtlil.h index 97d01617a..91c9a1baa 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -628,15 +628,15 @@ public: SigSpec(RTLIL::SigSpec &&other) { width_ = other.width_; hash_ = other.hash_; - chunks_.swap(other.chunks_); - bits_.swap(other.bits_); + chunks_ = std::move(other.chunks_); + bits_ = std::move(other.bits_); } const RTLIL::SigSpec &operator=(RTLIL::SigSpec &&other) { width_ = other.width_; hash_ = other.hash_; - chunks_.swap(other.chunks_); - bits_.swap(other.bits_); + chunks_ = std::move(other.chunks_); + bits_ = std::move(other.bits_); return *this; }