Skip to content

Commit

Permalink
src: fix readability/constructors cpplint warnings
Browse files Browse the repository at this point in the history
PR-URL: #7462
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
  • Loading branch information
bnoordhuis authored and Myles Borins committed Jul 14, 2016
1 parent 16f2497 commit c90ae7f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/node_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

Expand Down

0 comments on commit c90ae7f

Please sign in to comment.