From ba4df925eb7143606d5a57f49e4ecb179dd7743b Mon Sep 17 00:00:00 2001 From: gengjiawen Date: Fri, 8 Feb 2019 09:34:46 +0800 Subject: [PATCH] src: remove redundant void PR-URL: https://github.com/nodejs/node/pull/26003 Reviewed-By: Ben Noordhuis Reviewed-By: Daniel Bevenius Reviewed-By: Colin Ihrig --- src/inspector_socket.cc | 2 +- src/node_object_wrap.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/inspector_socket.cc b/src/inspector_socket.cc index 511f144c3f8e1d..7be9a01e0c4315 100644 --- a/src/inspector_socket.cc +++ b/src/inspector_socket.cc @@ -363,7 +363,7 @@ class WsHandler : public ProtocolHandler { } private: - using Callback = void (WsHandler::*)(void); + using Callback = void (WsHandler::*)(); static void OnCloseFrameWritten(uv_write_t* req, int status) { WriteRequest* wr = WriteRequest::from_write_req(req); diff --git a/src/node_object_wrap.h b/src/node_object_wrap.h index b8ed2f99135a65..96b9115adac860 100644 --- a/src/node_object_wrap.h +++ b/src/node_object_wrap.h @@ -81,7 +81,7 @@ class ObjectWrap { } - inline void MakeWeak(void) { + inline void MakeWeak() { persistent().SetWeak(this, WeakCallback, v8::WeakCallbackType::kParameter); }