diff options
author | gengjiawen <technicalcute@gmail.com> | 2019-03-13 22:56:39 +0800 |
---|---|---|
committer | Refael Ackermann <refack@gmail.com> | 2019-03-17 21:58:22 -0400 |
commit | b215bf9dacde65f7904fe87586547b9a8ac5f950 (patch) | |
tree | bd3f11396300fb8354d1fe8e949d9380ebe8f51c /src/node_crypto.h | |
parent | ed60e863e74786dfb1f868f2a17c939843b64c25 (diff) | |
download | android-node-v8-b215bf9dacde65f7904fe87586547b9a8ac5f950.tar.gz android-node-v8-b215bf9dacde65f7904fe87586547b9a8ac5f950.tar.bz2 android-node-v8-b215bf9dacde65f7904fe87586547b9a8ac5f950.zip |
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_crypto.h')
-rw-r--r-- | src/node_crypto.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/node_crypto.h b/src/node_crypto.h index 982fc70543..1c66b318a2 100644 --- a/src/node_crypto.h +++ b/src/node_crypto.h @@ -367,6 +367,9 @@ class ByteSource { static ByteSource FromSymmetricKeyObject(v8::Local<v8::Value> handle); + ByteSource(const ByteSource&) = delete; + ByteSource& operator=(const ByteSource&) = delete; + private: const char* data_ = nullptr; char* allocated_data_ = nullptr; @@ -376,8 +379,6 @@ class ByteSource { static ByteSource Allocated(char* data, size_t size); static ByteSource Foreign(const char* data, size_t size); - - DISALLOW_COPY_AND_ASSIGN(ByteSource); }; enum PKEncodingType { |