]> git.lyx.org Git - features.git/commitdiff
Fix (hopefully) gcc warning about initialization order in constructor.
authorAbdelrazak Younes <younes@lyx.org>
Thu, 26 Oct 2006 08:01:48 +0000 (08:01 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 26 Oct 2006 08:01:48 +0000 (08:01 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15553 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/LyXView.C
src/frontends/WorkArea.C

index e700434499d257f6b6c8b94c171f1681bee7cb96..c8cc8b92ef5bb37cc276bbfab997bdedbf1b41ae 100644 (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) {
index ac74e2000dce2ea1a3ecda07d2693f1b7ec76bd9..cf2690620fb3c37457c7be6a8bdc733d8a66471f 100644 (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) {