diff options
author | gengjiawen <technicalcute@gmail.com> | 2019-02-11 12:20:52 +0300 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2019-02-19 14:54:41 +0300 |
commit | 8375c706ad51a399451e4f43b075f3795c440dad (patch) | |
tree | a8eaa7d4fae2f3e6ff8b56a62569d9d48c3e1245 /src/node_messaging.h | |
parent | b200a46befd936cbf1b5356045d88ba9e8156e87 (diff) |
src: apply clang-tidy rule performance-unnecessary-value-param
PR-URL: https://github.com/nodejs/node/pull/26042
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_messaging.h')
-rw-r--r-- | src/node_messaging.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_messaging.h b/src/node_messaging.h index e1ced4f3fde..cfda69ae7ff 100644 --- a/src/node_messaging.h +++ b/src/node_messaging.h @@ -43,7 +43,7 @@ class Message : public MemoryRetainer { // Internal method of Message that is called when a new SharedArrayBuffer // object is encountered in the incoming value's structure. - void AddSharedArrayBuffer(SharedArrayBufferMetadataReference ref); + void AddSharedArrayBuffer(const SharedArrayBufferMetadataReference& ref); // Internal method of Message that is called once serialization finishes // and that transfers ownership of `data` to this message. void AddMessagePort(std::unique_ptr<MessagePortData>&& data); |