diff options
author | gengjiawen <technicalcute@gmail.com> | 2019-03-13 17:56:39 +0300 |
---|---|---|
committer | Refael Ackermann <refack@gmail.com> | 2019-03-18 04:58:22 +0300 |
commit | b215bf9dacde65f7904fe87586547b9a8ac5f950 (patch) | |
tree | bd3f11396300fb8354d1fe8e949d9380ebe8f51c /src/node_binding.h | |
parent | ed60e863e74786dfb1f868f2a17c939843b64c25 (diff) |
src: inline macro DISALLOW_COPY_AND_ASSIGN
PR-URL: https://github.com/nodejs/node/pull/26634
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Diffstat (limited to 'src/node_binding.h')
-rw-r--r-- | src/node_binding.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_binding.h b/src/node_binding.h index e2f4d320c80..dd94fab36a0 100644 --- a/src/node_binding.h +++ b/src/node_binding.h @@ -80,8 +80,8 @@ class DLib { #endif bool has_entry_in_global_handle_map_ = false; - private: - DISALLOW_COPY_AND_ASSIGN(DLib); + DLib(const DLib&) = delete; + DLib& operator=(const DLib&) = delete; }; // Call _register<module_name> functions for all of |