Skip to content

Commit

Permalink
src: fix -Wreorder compiler warning
Browse files Browse the repository at this point in the history
../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]>
  • Loading branch information
cjihrig authored and MylesBorins committed Mar 9, 2020
1 parent 7b9b578 commit e9f9d07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node_http_common-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e9f9d07

Please sign in to comment.