diff --git a/src/node_messaging.cc b/src/node_messaging.cc index 6403950e9c8a96..152d9c164750c2 100644 --- a/src/node_messaging.cc +++ b/src/node_messaging.cc @@ -349,7 +349,7 @@ class SerializerDelegate : public ValueSerializer::Delegate { std::vector> nested_transferables; if (!host_objects_[i]->NestedTransferables().To(&nested_transferables)) return Nothing(); - for (auto nested_transferable : nested_transferables) { + for (auto& nested_transferable : nested_transferables) { if (std::find(host_objects_.begin(), host_objects_.end(), nested_transferable) == host_objects_.end()) {