From: Abdelrazak Younes Date: Sun, 9 Aug 2009 17:00:26 +0000 (+0000) Subject: gcc compilation and warning fixes. X-Git-Tag: 2.0.0~5794 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=9e6c9ecbe427418f659061e7d2fe17e53dc391f4;p=features.git gcc compilation and warning fixes. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30952 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index b5c7542271..a6041d06c7 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -175,7 +175,7 @@ public: bool isTextAt(string const & str, pos_type pos) const; - InsetCode Private::ownerCode() const + InsetCode ownerCode() const { return inset_owner_ ? inset_owner_->lyxCode() : NO_CODE; } diff --git a/src/Text.h b/src/Text.h index a0c94dab07..1a3808fec3 100644 --- a/src/Text.h +++ b/src/Text.h @@ -40,7 +40,7 @@ class Text { public: /// constructor explicit Text(InsetText * owner) - : autoBreakRows_(false), owner_(owner) + : owner_(owner), autoBreakRows_(false) {} /// \return true if there's no content at all.