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 <[email protected]>
  • Loading branch information
gengjiawen authored and danbev committed Mar 28, 2019
1 parent 0601f16 commit 3440cf6
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 3440cf6

Please sign in to comment.