Silence a compiler warning about initialization order of nsIdleServiceDaily members, no bug
authorEhsan Akhgari <ehsan@mozilla.com>
Sat, 13 Oct 2012 17:31:02 -0400
changeset 110328 3874d326bc540ec6e2b5456749d40bbe31082d11
parent 110327 313526b27c227e2133bd261d0f0163bfcddecb42
child 110329 919872b632ab30764ddd96e462ee89a2fbdebe31
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
milestone19.0a1
Silence a compiler warning about initialization order of nsIdleServiceDaily members, no bug
widget/xpwidgets/nsIdleService.cpp
--- a/widget/xpwidgets/nsIdleService.cpp
+++ b/widget/xpwidgets/nsIdleService.cpp
@@ -144,19 +144,19 @@ nsIdleServiceDaily::Observe(nsISupports 
 
   return NS_OK;
 }
 
 nsIdleServiceDaily::nsIdleServiceDaily(nsIIdleService* aIdleService)
   : mIdleService(aIdleService)
   , mTimer(do_CreateInstance(NS_TIMER_CONTRACTID))
   , mCategoryObservers(OBSERVER_TOPIC_IDLE_DAILY)
+  , mShutdownInProgress(false)
   , mExpectedTriggerTime(0)
   , mIdleDailyTriggerWait(DAILY_SIGNIFICANT_IDLE_SERVICE_SEC)
-  , mShutdownInProgress(false)
 {
 }
 
 void
 nsIdleServiceDaily::Init()
 {
   // First check the time of the last idle-daily event notification. If it
   // has been 24 hours or higher, or if we have never sent an idle-daily,