Bug 416998: Fix the order of member variable initializers for a few constructors. sr=bz, a=schrep

This commit is contained in:
jag@tty.nl 2008-02-18 23:36:50 -08:00
parent 663ada1b10
commit dd268604cd
9 changed files with 16 additions and 16 deletions

View File

@ -161,9 +161,9 @@ nsHTMLEditor::nsHTMLEditor()
, mIsMoving(PR_FALSE)
, mSnapToGridEnabled(PR_FALSE)
, mIsInlineTableEditingEnabled(PR_TRUE)
, mGridSize(0)
, mInfoXIncrement(20)
, mInfoYIncrement(20)
, mGridSize(0)
{
}

View File

@ -93,7 +93,7 @@ eFontPrefLang GetFontPrefLangFor(PRUint8 aUnicodeRange);
gfxAtsuiFont::gfxAtsuiFont(MacOSFontEntry *aFontEntry,
const gfxFontStyle *fontStyle)
: gfxFont(aFontEntry->Name(), fontStyle),
mFontStyle(fontStyle), mFontEntry(aFontEntry), mATSUStyle(nsnull),
mFontStyle(fontStyle), mATSUStyle(nsnull), mFontEntry(aFontEntry),
mHasMirroring(PR_FALSE), mHasMirroringLookedUp(PR_FALSE), mAdjustedSize(0.0f)
{
ATSUFontID fontID = mFontEntry->GetFontID();

View File

@ -68,11 +68,11 @@ nsBlockReflowState::nsBlockReflowState(const nsHTMLReflowState& aReflowState,
: mBlock(aFrame),
mPresContext(aPresContext),
mReflowState(aReflowState),
mOverflowTracker(aPresContext, aFrame, PR_FALSE),
mPrevBottomMargin(),
mLineNumber(0),
mFlags(0),
mFloatBreakType(NS_STYLE_CLEAR_NONE),
mOverflowTracker(aPresContext, aFrame, PR_FALSE)
mFloatBreakType(NS_STYLE_CLEAR_NONE)
{
SetFlag(BRS_ISFIRSTINFLOW, aFrame->GetPrevInFlow() == nsnull);
SetFlag(BRS_ISOVERFLOWCONTAINER,

View File

@ -44,8 +44,8 @@ NS_IMPL_ISUPPORTS1(nsPagePrintTimer, nsITimerCallback)
nsPagePrintTimer::nsPagePrintTimer() :
mPrintEngine(nsnull),
mPrintObj(nsnull),
mDelay(0)
mDelay(0),
mPrintObj(nsnull)
{
}

View File

@ -226,18 +226,18 @@ NS_IMPL_ISUPPORTS1(nsPrintEngine, nsIObserver)
nsPrintEngine::nsPrintEngine() :
mIsCreatingPrintPreview(PR_FALSE),
mIsDoingPrinting(PR_FALSE),
mIsDoingPrintPreview(PR_FALSE),
mProgressDialogIsShown(PR_FALSE),
mDocViewerPrint(nsnull),
mContainer(nsnull),
mDeviceContext(nsnull),
mPrt(nsnull),
mPagePrintTimer(nsnull),
mPageSeqFrame(nsnull),
mIsDoingPrintPreview(PR_FALSE),
mParentWidget(nsnull),
mPrtPreview(nsnull),
mOldPrtPreview(nsnull),
mDebugFile(nsnull),
mProgressDialogIsShown(PR_FALSE)
mDebugFile(nsnull)
{
}

View File

@ -127,8 +127,8 @@ nsStyleFont::nsStyleFont(const nsStyleFont& aSrc)
#ifdef MOZ_MATHML
, mScriptLevel(aSrc.mScriptLevel)
, mScriptUnconstrainedSize(aSrc.mScriptUnconstrainedSize)
, mScriptSizeMultiplier(aSrc.mScriptSizeMultiplier)
, mScriptMinSize(aSrc.mScriptMinSize)
, mScriptSizeMultiplier(aSrc.mScriptSizeMultiplier)
#endif
{
}

View File

@ -53,7 +53,7 @@ class nsJARInputStream : public nsIInputStream
public:
nsJARInputStream() :
mFd(nsnull), mInSize(0), mCurPos(0),
mClosed(PR_FALSE), mInflate(nsnull), mDirectory(0) { }
mInflate(nsnull), mDirectory(0), mClosed(PR_FALSE) { }
~nsJARInputStream() { Close(); }

View File

@ -117,9 +117,9 @@ nsGIFDecoder2::nsGIFDecoder2()
: mCurrentRow(-1)
, mLastFlushedRow(-1)
, mImageData(nsnull)
, mOldColor(0)
, mCurrentPass(0)
, mLastFlushedPass(0)
, mOldColor(0)
, mGIFOpen(PR_FALSE)
, mSawTransparency(PR_FALSE)
{

View File

@ -400,8 +400,8 @@ nsDownloadManager::AssertProgressInfoFor(const nsACString& aTargetPath)
internalDownload->GetTransferInformation();
// convert from bytes to kbytes for progress display
PRInt64 current = (PRFloat64)transferInfo.mCurrBytes / 1024 + .5;
PRInt64 max = (PRFloat64)transferInfo.mMaxBytes / 1024 + .5;
PRInt64 current = (transferInfo.mCurrBytes + 512) / 1024;
PRInt64 max = (transferInfo.mMaxBytes + 512) / 1024;
nsAutoString currBytes; currBytes.AppendInt(current);
nsAutoString maxBytes; maxBytes.AppendInt(max);
@ -906,8 +906,8 @@ nsDownload::nsDownload(nsDownloadManager* aManager,
mCurrBytes(LL_ZERO),
mMaxBytes(LL_ZERO),
mStartTime(LL_ZERO),
mSpeed(0),
mLastUpdate(PR_Now() - (PRUint32)gInterval)
mLastUpdate(PR_Now() - (PRUint32)gInterval),
mSpeed(0)
{
}