From: Michael Schmitt Date: Thu, 8 Feb 2007 15:01:58 +0000 (+0000) Subject: * src/lyxtext.h: deleteEmptyParagraphMechanism(LCursor &, LCursor &, bool &), X-Git-Tag: 1.6.10~10871 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=54e3044232fdf74452be4873a7afacf5491df28a;p=lyx.git * src/lyxtext.h: deleteEmptyParagraphMechanism(LCursor &, LCursor &, bool &), fixCursorAfterDelete(CursorSlice &, CursorSlice const &): declare both methods as static. Note: I kept the methods in this file deliberately, because it makes it easier to keep both depm methods in sync git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17110 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/lyxtext.h b/src/lyxtext.h index ccb24ec461..897808cca8 100644 --- a/src/lyxtext.h +++ b/src/lyxtext.h @@ -349,7 +349,7 @@ public: /// \retval true if a change has happened and we need a redraw. /// FIXME: replace LCursor with DocIterator. This is not possible right /// now because recordUndo() is called which needs a LCursor. - bool deleteEmptyParagraphMechanism(LCursor & cur, + static bool deleteEmptyParagraphMechanism(LCursor & cur, LCursor & old, bool & need_anchor_change); /// delete double spaces, leading spaces, and empty paragraphs @@ -382,7 +382,7 @@ private: // fix the cursor `cur' after a characters has been deleted at `where' // position. Called by deleteEmptyParagraphMechanism - void fixCursorAfterDelete(CursorSlice & cur, CursorSlice const & where); + static void fixCursorAfterDelete(CursorSlice & cur, CursorSlice const & where); // At cursor position 0, try to merge the paragraph with the one before it. // Ignore change tracking, i.e., physically remove the end-of-par character