From 0e3ec4fa6acd280cb33bf3b40bd6e9260b98503c Mon Sep 17 00:00:00 2001 From: Frank Celler Date: Mon, 8 Feb 2016 23:38:29 +0100 Subject: [PATCH] fixed TRI_doc_mptr_t --- arangod/VocBase/document-collection.h | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/arangod/VocBase/document-collection.h b/arangod/VocBase/document-collection.h index a281dcff46..79a32bec15 100644 --- a/arangod/VocBase/document-collection.h +++ b/arangod/VocBase/document-collection.h @@ -78,7 +78,8 @@ struct TRI_doc_mptr_t { _next(nullptr), _dataptr(nullptr) {} - virtual ~TRI_doc_mptr_t() {} + // do NOT add virtual methods + ~TRI_doc_mptr_t() {} void clear() { _rid = 0; @@ -169,19 +170,6 @@ struct TRI_doc_mptr_copy_t final : public TRI_doc_mptr_t { copy(that); return *this; } - - // Move semantics: - - TRI_doc_mptr_copy_t(TRI_doc_mptr_copy_t&& that) { copy(that); } - - TRI_doc_mptr_copy_t&& operator=(TRI_doc_mptr_copy_t&& that) { - copy(that); - return std::move(*this); - } - - inline void const* getDataPtr() const { return _dataptr; } - - inline void setDataPtr(void const* d) { _dataptr = d; } }; ////////////////////////////////////////////////////////////////////////////////