Bug 497068: Fix "will be initialized after" warnings; r=dbaron

This commit is contained in:
Arpad Borsos 2009-06-09 18:03:59 +02:00
parent a56370e043
commit e6fe766c98
5 changed files with 15 additions and 11 deletions

View File

@ -76,15 +76,19 @@ NS_IMPL_CYCLE_COLLECTING_RELEASE(nsAccEvent)
// nsAccEvent. Constructors
nsAccEvent::nsAccEvent(PRUint32 aEventType, nsIAccessible *aAccessible,
PRBool aIsAsynch, EEventRule aEventRule):
mEventType(aEventType), mAccessible(aAccessible), mEventRule(aEventRule)
PRBool aIsAsynch, EEventRule aEventRule)
: mEventType(aEventType)
, mEventRule(aEventRule)
, mAccessible(aAccessible)
{
CaptureIsFromUserInput(aIsAsynch);
}
nsAccEvent::nsAccEvent(PRUint32 aEventType, nsIDOMNode *aDOMNode,
PRBool aIsAsynch, EEventRule aEventRule):
mEventType(aEventType), mDOMNode(aDOMNode), mEventRule(aEventRule)
PRBool aIsAsynch, EEventRule aEventRule)
: mEventType(aEventType)
, mEventRule(aEventRule)
, mDOMNode(aDOMNode)
{
CaptureIsFromUserInput(aIsAsynch);
}

View File

@ -72,12 +72,12 @@ nsDOMDataTransfer::nsDOMDataTransfer()
: mEventType(NS_DRAGDROP_START),
mDropEffect(nsIDragService::DRAGDROP_ACTION_NONE),
mEffectAllowed(nsIDragService::DRAGDROP_ACTION_UNINITIALIZED),
mCursorState(PR_FALSE),
mReadOnly(PR_FALSE),
mIsExternal(PR_FALSE),
mUserCancelled(PR_FALSE),
mDragImageX(0),
mDragImageY(0),
mCursorState(PR_FALSE)
mDragImageY(0)
{
}

View File

@ -299,10 +299,10 @@ nsTemplateRule::nsTemplateRule(nsIContent* aRuleNode,
nsTemplateRule::nsTemplateRule(const nsTemplateRule& aOtherRule)
: mQuerySet(aOtherRule.mQuerySet),
mRuleNode(aOtherRule.mRuleNode),
mAction(aOtherRule.mAction),
mBindings(nsnull),
mConditions(nsnull),
mRuleNode(aOtherRule.mRuleNode)
mConditions(nsnull)
{
MOZ_COUNT_CTOR(nsTemplateRule);
}

View File

@ -165,10 +165,10 @@ nsIMemory* nsIOService::gBufferCache = nsnull;
nsIOService::nsIOService()
: mOffline(PR_FALSE)
, mOfflineForProfileChange(PR_FALSE)
, mManageOfflineStatus(PR_TRUE)
, mSettingOffline(PR_FALSE)
, mSetOfflineValue(PR_FALSE)
, mShutdown(PR_FALSE)
, mManageOfflineStatus(PR_TRUE)
, mChannelEventSinks(NS_CHANNEL_EVENT_SINK_CATEGORY)
, mContentSniffers(NS_CONTENT_SNIFFER_CATEGORY)
{

View File

@ -142,8 +142,8 @@ NS_IMPL_ISUPPORTS1(
// nsFaviconService::nsFaviconService
nsFaviconService::nsFaviconService() : mFailedFaviconSerial(0)
, mExpirationRunning(false)
nsFaviconService::nsFaviconService() : mExpirationRunning(false)
, mFailedFaviconSerial(0)
{
NS_ASSERTION(! gFaviconService, "ATTEMPTING TO CREATE TWO FAVICON SERVICES!");
gFaviconService = this;