- fixed two minor bugs in BaseObject
authorAkiko <akiko@linux-addicted.net>
Wed, 23 Oct 2013 08:35:13 +0000 (10:35 +0200)
committerAkiko <akiko@linux-addicted.net>
Wed, 23 Oct 2013 08:35:13 +0000 (10:35 +0200)
common/BaseObject.hxx

index 01ec912..55895af 100644 (file)
@@ -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);