Skip to content

Commit e9f9d07

Browse files
cjihrigMylesBorins
authored andcommittedMar 9, 2020
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: #32126 Refs: #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>
1 parent 7b9b578 commit e9f9d07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/node_http_common-inl.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ NgHeader<T>::NgHeader(
123123

124124
template <typename T>
125125
NgHeader<T>::NgHeader(NgHeader<T>&& other) noexcept
126-
: token_(other.token_),
127-
name_(std::move(other.name_)),
126+
: name_(std::move(other.name_)),
128127
value_(std::move(other.value_)),
128+
token_(other.token_),
129129
flags_(other.flags_) {
130130
other.token_ = -1;
131131
other.flags_ = 0;

0 commit comments

Comments
 (0)
Please sign in to comment.