diff options
author | cjihrig <cjihrig@gmail.com> | 2020-03-06 19:21:00 +0300 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2020-03-10 02:02:23 +0300 |
commit | e9f9d076e9e9ca26caf36b715f025a2beb613783 (patch) | |
tree | ecbe53141138457c4612f956c1646c8910c73f24 /src/node_http_common-inl.h | |
parent | 7b9b578652a43a090e8d175920265a4e7b5d5b56 (diff) |
src: fix -Wreorder compiler warning
../src/node_http_common-inl.h:126:7: warning: field 'token_'
will be initialized after field 'name_' [-Wreorder]
: token_(other.token_),
PR-URL: https://github.com/nodejs/node/pull/32126
Refs: https://github.com/nodejs/node/pull/32069
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Diffstat (limited to 'src/node_http_common-inl.h')
-rw-r--r-- | src/node_http_common-inl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_http_common-inl.h b/src/node_http_common-inl.h index 1bc7b46d63a..d63cdf79a4b 100644 --- a/src/node_http_common-inl.h +++ b/src/node_http_common-inl.h @@ -123,9 +123,9 @@ NgHeader<T>::NgHeader( template <typename T> NgHeader<T>::NgHeader(NgHeader<T>&& other) noexcept - : token_(other.token_), - name_(std::move(other.name_)), + : name_(std::move(other.name_)), value_(std::move(other.value_)), + token_(other.token_), flags_(other.flags_) { other.token_ = -1; other.flags_ = 0; |