Bug 1222170 - fix initialization order in ScopedWLANObject; r=jimm

Member fields are supposed to be initialized in the order they are
declared, but the constructor of ScopedWLANObject initialized mObject
prior to mLibrary.  This is probably harmless, but it does cause a
warning on clang-cl, so let's fix it.
This commit is contained in:
Nathan Froyd 2015-11-05 14:50:02 -05:00
parent 4620de06d1
commit 2be54a30c5

View File

@ -1,3 +1,5 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sts=2 sw=2 et cin: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
@ -43,8 +45,8 @@ class WinWLANLibrary {
class ScopedWLANObject {
public:
ScopedWLANObject(WinWLANLibrary* library, void* object)
: mObject(object),
mLibrary(library)
: mLibrary(library)
, mObject(object)
{
}