refactor: replace deprecated DISALLOW_COPY_AND_ASSIGN (#31633)
This commit is contained in:
parent
2a2a1a834c
commit
65a980c673
231 changed files with 918 additions and 576 deletions
|
@ -33,6 +33,10 @@ class PromiseBase {
|
|||
PromiseBase(v8::Isolate* isolate, v8::Local<v8::Promise::Resolver> handle);
|
||||
~PromiseBase();
|
||||
|
||||
// disable copy
|
||||
PromiseBase(const PromiseBase&) = delete;
|
||||
PromiseBase& operator=(const PromiseBase&) = delete;
|
||||
|
||||
// Support moving.
|
||||
PromiseBase(PromiseBase&&);
|
||||
PromiseBase& operator=(PromiseBase&&);
|
||||
|
@ -75,8 +79,6 @@ class PromiseBase {
|
|||
v8::Isolate* isolate_;
|
||||
v8::Global<v8::Context> context_;
|
||||
v8::Global<v8::Promise::Resolver> resolver_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(PromiseBase);
|
||||
};
|
||||
|
||||
// Template implementation that returns values.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue