diff --git a/editor/libeditor/html/nsHTMLEditor.cpp b/editor/libeditor/html/nsHTMLEditor.cpp
index 694c6502b635..9c3b875f7b8c 100644
--- a/editor/libeditor/html/nsHTMLEditor.cpp
+++ b/editor/libeditor/html/nsHTMLEditor.cpp
@@ -161,9 +161,9 @@ nsHTMLEditor::nsHTMLEditor()
, mIsMoving(PR_FALSE)
, mSnapToGridEnabled(PR_FALSE)
, mIsInlineTableEditingEnabled(PR_TRUE)
-, mGridSize(0)
, mInfoXIncrement(20)
, mInfoYIncrement(20)
+, mGridSize(0)
{
}
diff --git a/gfx/thebes/src/gfxAtsuiFonts.cpp b/gfx/thebes/src/gfxAtsuiFonts.cpp
index 9fef175b8760..f6c754177d5f 100644
--- a/gfx/thebes/src/gfxAtsuiFonts.cpp
+++ b/gfx/thebes/src/gfxAtsuiFonts.cpp
@@ -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();
diff --git a/layout/generic/nsBlockReflowState.cpp b/layout/generic/nsBlockReflowState.cpp
index 947e79dfb162..02b4d64e40b9 100644
--- a/layout/generic/nsBlockReflowState.cpp
+++ b/layout/generic/nsBlockReflowState.cpp
@@ -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,
diff --git a/layout/printing/nsPagePrintTimer.cpp b/layout/printing/nsPagePrintTimer.cpp
index 5344aa52b8e3..5e9f80ad0772 100644
--- a/layout/printing/nsPagePrintTimer.cpp
+++ b/layout/printing/nsPagePrintTimer.cpp
@@ -44,8 +44,8 @@ NS_IMPL_ISUPPORTS1(nsPagePrintTimer, nsITimerCallback)
nsPagePrintTimer::nsPagePrintTimer() :
mPrintEngine(nsnull),
- mPrintObj(nsnull),
- mDelay(0)
+ mDelay(0),
+ mPrintObj(nsnull)
{
}
diff --git a/layout/printing/nsPrintEngine.cpp b/layout/printing/nsPrintEngine.cpp
index d0f505023e4c..291d53a97032 100644
--- a/layout/printing/nsPrintEngine.cpp
+++ b/layout/printing/nsPrintEngine.cpp
@@ -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)
{
}
diff --git a/layout/style/nsStyleStruct.cpp b/layout/style/nsStyleStruct.cpp
index 2b731883f8e9..cd8e99a89f6d 100644
--- a/layout/style/nsStyleStruct.cpp
+++ b/layout/style/nsStyleStruct.cpp
@@ -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
{
}
diff --git a/modules/libjar/nsJARInputStream.h b/modules/libjar/nsJARInputStream.h
index 604b0d6555c3..52ef374aad07 100644
--- a/modules/libjar/nsJARInputStream.h
+++ b/modules/libjar/nsJARInputStream.h
@@ -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(); }
diff --git a/modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp b/modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp
index 28006a9d8027..4dcd9738314a 100644
--- a/modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp
+++ b/modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp
@@ -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)
{
diff --git a/xpfe/components/download-manager/src/nsDownloadManager.cpp b/xpfe/components/download-manager/src/nsDownloadManager.cpp
index c5006c626274..31f9a4b65631 100644
--- a/xpfe/components/download-manager/src/nsDownloadManager.cpp
+++ b/xpfe/components/download-manager/src/nsDownloadManager.cpp
@@ -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)
{
}