From: Akiko Date: Wed, 23 Oct 2013 08:35:13 +0000 (+0200) Subject: - fixed two minor bugs in BaseObject X-Git-Url: http://community.linux-addicted.net/gitweb/?a=commitdiff_plain;h=2eb92c8e0c0ae39df36cf0087b27e86f13471421;p=qtinns.git - fixed two minor bugs in BaseObject --- diff --git a/common/BaseObject.hxx b/common/BaseObject.hxx index 01ec912..55895af 100644 --- a/common/BaseObject.hxx +++ b/common/BaseObject.hxx @@ -26,12 +26,12 @@ public: } BaseObject(const BaseObject& rhs) - : pcid(rhs.cid), cid(HRC::now()), cidx(rhs.cindex) + : pcid(rhs.cid), cid(HRC::now()), cindex(rhs.cindex) { } BaseObject(const BaseObject&& rhs) - : pcid(std::move(rhs.pcid)), cid(std::move(rhs.cid)), cidx(std::move(rhs.cindex)) + : pcid(std::move(rhs.pcid)), cid(std::move(rhs.cid)), cindex(std::move(rhs.cindex)) { } @@ -50,7 +50,7 @@ public: return *this; } - BaseObject& operator=(const BaseObject&& rhs) + BaseObject& operator=(BaseObject&& rhs) { pcid = std::move(rhs.pcid); cid = std::move(rhs.cid);