diff --git a/napi.h b/napi.h index 8ce285cbc..b3e1dbfec 100644 --- a/napi.h +++ b/napi.h @@ -1115,7 +1115,7 @@ namespace Napi { // A reference can be moved but cannot be copied. Reference(Reference&& other); Reference& operator =(Reference&& other); - NAPI_DISALLOW_ASSIGN(Reference); + NAPI_DISALLOW_ASSIGN(Reference) operator napi_ref() const; bool operator ==(const Reference &other) const; @@ -1160,7 +1160,7 @@ namespace Napi { ObjectReference& operator =(Reference&& 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; @@ -1197,7 +1197,7 @@ namespace Napi { FunctionReference& operator =(Reference&& 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& args) const; @@ -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; @@ -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; @@ -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; @@ -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; @@ -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; @@ -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;