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
Родитель a24d95bb6d
Коммит a701380ad7
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -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)
{
}