Closed Bug 654372 Opened 9 years ago Closed 9 years ago

nsWebBrowserPersist init list out of order - "warning: 'nsWebBrowserPersist::mWrapColumn' will be initialized after ... 'PRInt64 nsWebBrowserPersist::mTotalCurrentProgress' ... when initialized here (nsWebBrowserPersist.cpp:234)"

Categories

(Core Graveyard :: Embedding: APIs, defect)

defect
Not set

Tracking

(Not tracked)

RESOLVED FIXED
mozilla6

People

(Reporter: dholbert, Assigned: dholbert)

References

()

Details

(Whiteboard: [build_warning])

Attachments

(1 file)

nsWebBrowserPersist's init list is out of order since this cset:
  http://hg.mozilla.org/mozilla-central/rev/b7bfd0871b3f

The build warning is:
nsWebBrowserPersist.h: In constructor 'nsWebBrowserPersist::nsWebBrowserPersist()':
nsWebBrowserPersist.h:244:31: warning: 'nsWebBrowserPersist::mWrapColumn' will be initialized after
nsWebBrowserPersist.h:242:31: warning:   'PRInt64 nsWebBrowserPersist::mTotalCurrentProgress'
nsWebBrowserPersist.cpp:234:1: warning:   when initialized here
Attached patch fixSplinter Review
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Attachment #529641 - Flags: review?(ehsan)
Comment on attachment 529641 [details] [diff] [review]
fix

Sorry!  In my defense, I *tried* to preserve the correct initialization order!  ;-)
Attachment #529641 - Flags: review?(ehsan) → review+
No problem. :)

Adding checkin-needed keyword, in the hopes that this can ride along with something.  (Patch already has author & commit message set correctly, so it can be hg [q]imported)
Keywords: checkin-needed
http://hg.mozilla.org/mozilla-central/rev/759cb9d29ef3
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla6
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.