From a701380ad76c14cb66513b1a1b18c7d9b6af5fa6 Mon Sep 17 00:00:00 2001 From: Nathan Froyd Date: Thu, 5 Nov 2015 14:50:02 -0500 Subject: [PATCH] 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. --- netwerk/wifi/win_wlanLibrary.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/netwerk/wifi/win_wlanLibrary.h b/netwerk/wifi/win_wlanLibrary.h index 0637c8912205..3daf4618eac3 100644 --- a/netwerk/wifi/win_wlanLibrary.h +++ b/netwerk/wifi/win_wlanLibrary.h @@ -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) { }