diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2014-10-22 04:33:01 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2014-10-23 22:49:59 +0200 |
commit | c038dcc360cb5e72c5891d1ef59640f5c3fa76b8 (patch) | |
tree | 349150545cc59d4fef1ba84f1a94943021f1fbde /src/node_file.cc | |
parent | 9f5800ab81dd33da792477e5451ec4c83b1cc0fb (diff) | |
download | node-new-c038dcc360cb5e72c5891d1ef59640f5c3fa76b8.tar.gz |
src: update DISALLOW_COPY_AND_ASSIGN() to c++11
Mark the matrix of copy/move constructor/assignment operator as deleted.
Prevents the object from being copied around (the macro already did that
pre-C++11), but also from being moved out.
Diffstat (limited to 'src/node_file.cc')
-rw-r--r-- | src/node_file.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/node_file.cc b/src/node_file.cc index 86474b75fa..dec90b5291 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -248,10 +248,8 @@ static void After(uv_fs_t *req) { struct fs_req_wrap { fs_req_wrap() {} ~fs_req_wrap() { uv_fs_req_cleanup(&req); } - // Ensure that copy ctor and assignment operator are not used. - fs_req_wrap(const fs_req_wrap& req); - fs_req_wrap& operator=(const fs_req_wrap& req); uv_fs_t req; + DISALLOW_COPY_AND_ASSIGN(fs_req_wrap); }; |