From 9e6c9ecbe427418f659061e7d2fe17e53dc391f4 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sun, 9 Aug 2009 17:00:26 +0000 Subject: [PATCH] gcc compilation and warning fixes. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30952 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Paragraph.cpp | 2 +- src/Text.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.