From 3fd15ed22a23af1c5bb2cf037f93c1bce5f1e243 Mon Sep 17 00:00:00 2001 From: Shauren Date: Tue, 27 Oct 2015 22:55:57 +0100 Subject: Core/Misc: Removed manually defined ObjectGuid copy/move constructors. This will cause the compiler to automatically generate trivial constructors allowing them to be treated as simple integers --- src/server/game/Entities/Object/ObjectGuid.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src') diff --git a/src/server/game/Entities/Object/ObjectGuid.h b/src/server/game/Entities/Object/ObjectGuid.h index 876985cec23..feb5219b39f 100644 --- a/src/server/game/Entities/Object/ObjectGuid.h +++ b/src/server/game/Entities/Object/ObjectGuid.h @@ -202,11 +202,6 @@ class ObjectGuid static typename std::enable_if::MapSpecific, ObjectGuid>::type Create(uint16 mapId, uint32 entry, LowType counter) { return MapSpecific(type, 0, mapId, 0, entry, counter); } ObjectGuid() : _low(0), _high(0) { } - ObjectGuid(ObjectGuid const& r) : _low(r._low), _high(r._high) { } - ObjectGuid(ObjectGuid&& r) : _low(r._low), _high(r._high) { } - - ObjectGuid& operator=(ObjectGuid const& r) { _low = r._low; _high = r._high; return *this; } - ObjectGuid& operator=(ObjectGuid&& r) { _low = r._low; _high = r._high; return *this; } std::vector GetRawValue() const; void SetRawValue(std::vector const& guid); -- cgit v1.2.3