From 2be54a30c5874fb6ddab47d67a6ac28d0ddfbf70 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 0637c891220..3daf4618eac 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) { }