From cd63c1380ba90bd0074a29cd342b2810498a0f53 Mon Sep 17 00:00:00 2001 From: Stefan Schimanski Date: Tue, 4 Mar 2008 14:58:10 +0000 Subject: [PATCH] * remove some garbage from the "buffer in inset" change git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23453 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Paragraph.cpp | 6 +++--- src/Paragraph.h | 4 ++-- src/insets/InsetText.cpp | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 1cbb3f3163..d51aa8a129 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -2699,7 +2699,7 @@ void Paragraph::deregisterWords() } -void Paragraph::collectWords(Buffer const & buf, CursorSlice const & sl) +void Paragraph::collectWords(CursorSlice const & sl) { // find new words bool inword = false; @@ -2743,11 +2743,11 @@ void Paragraph::registerWords() } -void Paragraph::updateWords(Buffer const & buf, CursorSlice const & sl) +void Paragraph::updateWords(CursorSlice const & sl) { BOOST_ASSERT(&sl.paragraph() == this); deregisterWords(); - collectWords(buf, sl); + collectWords(sl); registerWords(); } diff --git a/src/Paragraph.h b/src/Paragraph.h index 0c9c94c8d2..d9d8be5873 100644 --- a/src/Paragraph.h +++ b/src/Paragraph.h @@ -365,13 +365,13 @@ public: bool del = true) const; /// - void updateWords(Buffer const & buf, CursorSlice const & sl); + void updateWords(CursorSlice const & sl); private: /// void deregisterWords(); /// - void collectWords(Buffer const & buf, CursorSlice const & sl); + void collectWords(CursorSlice const & sl); /// void registerWords(); diff --git a/src/insets/InsetText.cpp b/src/insets/InsetText.cpp index 83f705dbf0..9d188de26d 100644 --- a/src/insets/InsetText.cpp +++ b/src/insets/InsetText.cpp @@ -484,7 +484,7 @@ bool InsetText::notifyCursorLeaves(Cursor const & old, Cursor & cur) BOOST_ASSERT(&insetCur.inset() == this); // update the old paragraph's words - insetCur.paragraph().updateWords(insetCur.buffer(), insetCur.top()); + insetCur.paragraph().updateWords(insetCur.top()); return Inset::notifyCursorLeaves(old, cur); } -- 2.39.2