Last Comment Bug 654372 - nsWebBrowserPersist init list out of order - "warning: 'nsWebBrowserPersist::mWrapColumn' will be initialized after ... 'PRInt64 nsWebBrowserPersist::mTotalCurrentProgress' ... when initialized here (nsWebBrowserPersist.cpp:234)"
: nsWebBrowserPersist init list out of order - "warning: 'nsWebBrowserPersist::...
Product: Core
Classification: Components
Component: Embedding: APIs (show other bugs)
: Trunk
: All All
-- normal (vote)
: mozilla6
Assigned To: Daniel Holbert [:dholbert] (vacation, returning 2/27)
: Myk Melez [:myk] [@mykmelez]
Depends on:
Blocks: 646071
  Show dependency treegraph
Reported: 2011-05-02 23:10 PDT by Daniel Holbert [:dholbert] (vacation, returning 2/27)
Modified: 2011-05-04 01:31 PDT (History)
3 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

fix (1.00 KB, patch)
2011-05-02 23:14 PDT, Daniel Holbert [:dholbert] (vacation, returning 2/27)
ehsan: review+
Details | Diff | Splinter Review

Description User image Daniel Holbert [:dholbert] (vacation, returning 2/27) 2011-05-02 23:10:29 PDT
nsWebBrowserPersist's init list is out of order since this cset:

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
Comment 1 User image Daniel Holbert [:dholbert] (vacation, returning 2/27) 2011-05-02 23:14:25 PDT
Created attachment 529641 [details] [diff] [review]
Comment 2 User image :Ehsan Akhgari 2011-05-03 11:00:48 PDT
Comment on attachment 529641 [details] [diff] [review]

Sorry!  In my defense, I *tried* to preserve the correct initialization order!  ;-)
Comment 3 User image Daniel Holbert [:dholbert] (vacation, returning 2/27) 2011-05-03 16:47:13 PDT
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)
Comment 4 User image Dão Gottwald [:dao] 2011-05-04 01:31:41 PDT

Note You need to log in before you can comment on or make changes to this bug.