From: Abdelrazak Younes Date: Thu, 26 Oct 2006 08:01:48 +0000 (+0000) Subject: Fix (hopefully) gcc warning about initialization order in constructor. X-Git-Tag: 1.6.10~12190 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=1e3d50b669b5340dca87715dfb3ddf6781e7f916;p=features.git 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 --- diff --git a/src/frontends/LyXView.C b/src/frontends/LyXView.C index e700434499..c8cc8b92ef 100644 --- a/src/frontends/LyXView.C +++ b/src/frontends/LyXView.C @@ -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) { diff --git a/src/frontends/WorkArea.C b/src/frontends/WorkArea.C index ac74e2000d..cf2690620f 100644 --- a/src/frontends/WorkArea.C +++ b/src/frontends/WorkArea.C @@ -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) {