Bug 620898 warning ... will be initialized after mWindowId in Image and imgRequest. r=joe a=joe
authortimeless@mozdev.org
Mon, 10 Jan 2011 21:59:58 -0800
changeset 60276 d9ec3e791cee28acabdea730df351900fa4f7627
parent 60275 2bf97aec7fdda56a69923a05fbe98a86d6d609c1
child 60277 9862560161c4ca70e33517b661e0b05b832bb492
push idunknown
push userunknown
push dateunknown
reviewersjoe, joe
bugs620898
milestone2.0b10pre
Bug 620898 warning ... will be initialized after mWindowId in Image and imgRequest. r=joe a=joe
modules/libpr0n/src/Image.cpp
modules/libpr0n/src/imgRequest.cpp
--- a/modules/libpr0n/src/Image.cpp
+++ b/modules/libpr0n/src/Image.cpp
@@ -37,22 +37,22 @@
 
 #include "Image.h"
 
 namespace mozilla {
 namespace imagelib {
 
 // Constructor
 Image::Image(imgStatusTracker* aStatusTracker) :
+  mWindowId(0),
   mAnimationConsumers(0),
   mAnimationMode(kNormalAnimMode),
   mInitialized(PR_FALSE),
   mAnimating(PR_FALSE),
-  mError(PR_FALSE),
-  mWindowId(0)
+  mError(PR_FALSE)
 {
   if (aStatusTracker) {
     mStatusTracker = aStatusTracker;
     mStatusTracker->SetImage(this);
   } else {
     mStatusTracker = new imgStatusTracker(this);
   }
 }
--- a/modules/libpr0n/src/imgRequest.cpp
+++ b/modules/libpr0n/src/imgRequest.cpp
@@ -183,18 +183,18 @@ NS_IMPL_ISUPPORTS8(imgRequest,
                    nsIStreamListener, nsIRequestObserver,
                    nsISupportsWeakReference,
                    nsIChannelEventSink,
                    nsIInterfaceRequestor,
                    nsIAsyncVerifyRedirectCallback)
 
 imgRequest::imgRequest() : 
   mCacheId(0), mValidator(nsnull), mImageSniffers("image-sniffing-services"),
-  mDecodeRequested(PR_FALSE), mIsMultiPartChannel(PR_FALSE),
-  mGotData(PR_FALSE), mIsInCache(PR_FALSE), mWindowId(0)
+  mWindowId(0), mDecodeRequested(PR_FALSE), mIsMultiPartChannel(PR_FALSE),
+  mGotData(PR_FALSE), mIsInCache(PR_FALSE)
 {}
 
 imgRequest::~imgRequest()
 {
   if (mKeyURI) {
     nsCAutoString spec;
     mKeyURI->GetSpec(spec);
     LOG_FUNC_WITH_PARAM(gImgLog, "imgRequest::~imgRequest()", "keyuri", spec.get());