Skip to content

Commit

Permalink
src: use deleted function for class BaseObject
Browse files Browse the repository at this point in the history
PR-URL: #26815
Reviewed-By: Refael Ackermann <refack@gmail.com>
  • Loading branch information
gengjiawen authored and targos committed Mar 30, 2019
1 parent c824127 commit c969731
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/base_object.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ class BaseObject : public MemoryRetainer {
inline BaseObject(Environment* env, v8::Local<v8::Object> object);
inline ~BaseObject() override;

BaseObject() = delete;

// Returns the wrapped object. Returns an empty handle when
// persistent.IsEmpty() is true.
inline v8::Local<v8::Object> object() const;
Expand Down Expand Up @@ -83,8 +85,6 @@ class BaseObject : public MemoryRetainer {
const v8::PropertyCallbackInfo<void>& info);

private:
BaseObject();

v8::Local<v8::Object> WrappedObject() const override;
bool IsRootNode() const override;
static void DeleteMe(void* data);
Expand Down

0 comments on commit c969731

Please sign in to comment.