Skip to content

Commit

Permalink
Bug 1305814 - fix -Wreorder warning in MessageChannel; r=billm
Browse files Browse the repository at this point in the history
Initializer lists are supposed to initialize member variables in the
order they're listed in the class definition.
  • Loading branch information
froydnj committed Sep 28, 2016
1 parent 67abaa3 commit 722f809
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ipc/glue/MessageChannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,9 @@ MessageChannel::MessageChannel(MessageListener *aListener)
mTransactionStack(nullptr),
mTimedOutMessageSeqno(0),
mTimedOutMessagePriority(0),
#if defined(MOZ_CRASHREPORTER) && defined(OS_WIN)
mPending(AnnotateAllocator<Message>(*this)),
#endif
mRemoteStackDepthGuess(false),
mSawInterruptOutMsg(false),
mIsWaitingForIncoming(false),
Expand All @@ -492,9 +495,6 @@ MessageChannel::MessageChannel(MessageListener *aListener)
mFlags(REQUIRE_DEFAULT),
mPeerPidSet(false),
mPeerPid(-1)
#if defined(MOZ_CRASHREPORTER) && defined(OS_WIN)
, mPending(AnnotateAllocator<Message>(*this))
#endif
{
MOZ_COUNT_CTOR(ipc::MessageChannel);

Expand Down

0 comments on commit 722f809

Please sign in to comment.