Skip to content

Commit e9f9d07

Browse files
cjihrigMylesBorins
authored andcommitted
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 <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
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)