From d782be1cc922501c810965b970c6f1e3cc8abeb5 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Sun, 3 May 2009 19:02:03 +0000 Subject: [PATCH] Cosmetics. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29519 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Text3.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Text3.cpp b/src/Text3.cpp index c4c4524a96..1a8eee0f09 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -708,8 +708,8 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) break; case LFUN_SECTION_SELECT: { - Buffer & buf = *cur.buffer(); - pit_type & pit = cur.pit(); + Buffer const & buf = *cur.buffer(); + pit_type const pit = cur.pit(); ParagraphList & pars = buf.text().paragraphs(); ParagraphList::iterator bgn = pars.begin(); // The first paragraph of the area to be selected: @@ -719,7 +719,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) ParagraphList::iterator end = pars.end(); setCursor(cur, cur.pit(), 0); - Cursor old_cur = cur; + Cursor const old_cur = cur; needsUpdate |= cur.selHandle(true); int const thistoclevel = start->layout().toclevel; @@ -730,10 +730,9 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) if (finish != end) ++finish; - int toclevel; // Seek the one (on same level) below for (; finish != end; ++finish, cur.forwardPar()) { - toclevel = finish->layout().toclevel; + int const toclevel = finish->layout().toclevel; if (toclevel != Layout::NOT_IN_TOC && toclevel <= thistoclevel) break; } -- 2.39.2