From f962e46dfe7c5ab0ab4ff4d40b15cb53707016ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Wed, 23 Nov 2022 09:14:26 +0100 Subject: [PATCH] src: use qualified `std::move` call in node_http2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also iwyu in that file. Closes: https://github.com/nodejs/node/issues/45543 PR-URL: https://github.com/nodejs/node/pull/45555 Fixes: https://github.com/nodejs/node/issues/45543 Reviewed-By: Ben Noordhuis Reviewed-By: Anna Henningsen Reviewed-By: Tobias Nießen Reviewed-By: Rafael Gonzaga Reviewed-By: Richard Lau Reviewed-By: Darshan Sen Reviewed-By: Colin Ihrig Reviewed-By: Gerhard Stöbich Reviewed-By: Minwoo Jung Reviewed-By: Stephen Belanger --- src/node_http2.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/node_http2.cc b/src/node_http2.cc index fe66f9761d0c70..36cbb1c3f534e4 100644 --- a/src/node_http2.cc +++ b/src/node_http2.cc @@ -14,6 +14,10 @@ #include "util-inl.h" #include +#include +#include +#include +#include namespace node { @@ -644,7 +648,7 @@ void Http2Stream::EmitStatistics() { duration, statistics_); - env()->SetImmediate([entry = move(entry)](Environment* env) { + env()->SetImmediate([entry = std::move(entry)](Environment* env) { if (HasHttp2Observer(env)) entry->Notify(env); });