Skip to content

Commit

Permalink
Remove unnecessary trailing semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
legendecas committed Nov 7, 2019
1 parent 509ca37 commit 375d0ab
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions napi.h
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,7 @@ namespace Napi {
// A reference can be moved but cannot be copied.
Reference(Reference<T>&& other);
Reference<T>& operator =(Reference<T>&& other);
NAPI_DISALLOW_ASSIGN(Reference<T>);
NAPI_DISALLOW_ASSIGN(Reference<T>)

operator napi_ref() const;
bool operator ==(const Reference<T> &other) const;
Expand Down Expand Up @@ -1160,7 +1160,7 @@ namespace Napi {
ObjectReference& operator =(Reference<Object>&& other);
ObjectReference(ObjectReference&& other);
ObjectReference& operator =(ObjectReference&& other);
NAPI_DISALLOW_ASSIGN(ObjectReference);
NAPI_DISALLOW_ASSIGN(ObjectReference)

Napi::Value Get(const char* utf8name) const;
Napi::Value Get(const std::string& utf8name) const;
Expand Down Expand Up @@ -1197,7 +1197,7 @@ namespace Napi {
FunctionReference& operator =(Reference<Function>&& other);
FunctionReference(FunctionReference&& other);
FunctionReference& operator =(FunctionReference&& other);
NAPI_DISALLOW_ASSIGN_COPY(FunctionReference);
NAPI_DISALLOW_ASSIGN_COPY(FunctionReference)

Napi::Value operator ()(const std::initializer_list<napi_value>& args) const;

Expand Down Expand Up @@ -1387,7 +1387,7 @@ namespace Napi {
~CallbackInfo();

// Disallow copying to prevent multiple free of _dynamicArgs
NAPI_DISALLOW_ASSIGN_COPY(CallbackInfo);
NAPI_DISALLOW_ASSIGN_COPY(CallbackInfo)

Napi::Env Env() const;
Value NewTarget() const;
Expand Down Expand Up @@ -1749,7 +1749,7 @@ namespace Napi {
~HandleScope();

// Disallow copying to prevent double close of napi_handle_scope
NAPI_DISALLOW_ASSIGN_COPY(HandleScope);
NAPI_DISALLOW_ASSIGN_COPY(HandleScope)

operator napi_handle_scope() const;

Expand All @@ -1767,7 +1767,7 @@ namespace Napi {
~EscapableHandleScope();

// Disallow copying to prevent double close of napi_escapable_handle_scope
NAPI_DISALLOW_ASSIGN_COPY(EscapableHandleScope);
NAPI_DISALLOW_ASSIGN_COPY(EscapableHandleScope)

operator napi_escapable_handle_scope() const;

Expand All @@ -1787,7 +1787,7 @@ namespace Napi {
virtual ~CallbackScope();

// Disallow copying to prevent double close of napi_callback_scope
NAPI_DISALLOW_ASSIGN_COPY(CallbackScope);
NAPI_DISALLOW_ASSIGN_COPY(CallbackScope)

operator napi_callback_scope() const;

Expand All @@ -1807,7 +1807,7 @@ namespace Napi {

AsyncContext(AsyncContext&& other);
AsyncContext& operator =(AsyncContext&& other);
NAPI_DISALLOW_ASSIGN_COPY(AsyncContext);
NAPI_DISALLOW_ASSIGN_COPY(AsyncContext)

operator napi_async_context() const;

Expand All @@ -1825,7 +1825,7 @@ namespace Napi {
// An async worker can be moved but cannot be copied.
AsyncWorker(AsyncWorker&& other);
AsyncWorker& operator =(AsyncWorker&& other);
NAPI_DISALLOW_ASSIGN_COPY(AsyncWorker);
NAPI_DISALLOW_ASSIGN_COPY(AsyncWorker)

operator napi_async_work() const;

Expand Down

0 comments on commit 375d0ab

Please sign in to comment.