From 2eb92c8e0c0ae39df36cf0087b27e86f13471421 Mon Sep 17 00:00:00 2001 From: Akiko Date: Wed, 23 Oct 2013 10:35:13 +0200 Subject: [PATCH] - fixed two minor bugs in BaseObject --- common/BaseObject.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.15.1