diff options
author | cjihrig <cjihrig@gmail.com> | 2020-03-06 19:21:00 +0300 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2020-03-08 22:17:11 +0300 |
commit | 7bb4f95c1cdf860082a27e2592488c2ba6734c20 (patch) | |
tree | 4baefc29fea8e48cf33c0d766909f302c1de8820 /src/node_http_common-inl.h | |
parent | 3b8d70d924bee5126b1583fc3f1c4a8c70bce53b (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; |