mirror of https://gitee.com/bigwinds/arangodb
fixed TRI_doc_mptr_t
This commit is contained in:
parent
8a9ac0f372
commit
0e3ec4fa6a
|
@ -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; }
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue