Fix (hopefully) gcc warning about initialization order in constructor.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15553 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2006-10-26 08:01:48 +00:00
parent 06139fb170
commit 1e3d50b669
2 changed files with 4 additions and 4 deletions

View File

@ -68,11 +68,11 @@ string current_layout;
LyXView::LyXView(int id)
: id_(id), work_area_(0),
: work_area_(0),
toolbars_(new Toolbars(*this)),
autosave_timeout_(new Timeout(5000)),
dialogs_(new Dialogs(*this)),
controlcommand_(new ControlCommandBuffer(*this))
controlcommand_(new ControlCommandBuffer(*this)), id_(id)
{
// Start autosave timer
if (lyxrc.autosave) {

View File

@ -71,8 +71,8 @@ namespace lyx {
namespace frontend {
WorkArea::WorkArea(int id, LyXView & lyx_view)
: id_(id), buffer_view_(0), lyx_view_(lyx_view), greyed_out_(true),
cursor_visible_(false), cursor_timeout_(400)
: buffer_view_(0), lyx_view_(lyx_view), greyed_out_(true),
cursor_visible_(false), cursor_timeout_(400), id_(id)
{
// Start loading the pixmap as soon as possible
//if (lyxrc.show_banner) {