From c90ae7fb72f4a450cb0b6a0acc85daaa5631f37f Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 28 Jun 2016 21:21:21 +0200 Subject: [PATCH] src: fix readability/constructors cpplint warnings PR-URL: https://github.com/nodejs/node/pull/7462 Reviewed-By: Trevor Norris --- src/node_file.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/node_file.cc b/src/node_file.cc index b31435ecc0a77c..59b40f94380bdb 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -251,10 +251,13 @@ static void After(uv_fs_t *req) { // This struct is only used on sync fs calls. // For async calls FSReqWrap is used. -struct fs_req_wrap { +class fs_req_wrap { + public: fs_req_wrap() {} ~fs_req_wrap() { uv_fs_req_cleanup(&req); } uv_fs_t req; + + private: DISALLOW_COPY_AND_ASSIGN(fs_req_wrap); };