Cosmetics.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29519 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-05-03 19:02:03 +00:00
parent 0da78f8bbd
commit d782be1cc9

View File

@ -708,8 +708,8 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
break; break;
case LFUN_SECTION_SELECT: { case LFUN_SECTION_SELECT: {
Buffer & buf = *cur.buffer(); Buffer const & buf = *cur.buffer();
pit_type & pit = cur.pit(); pit_type const pit = cur.pit();
ParagraphList & pars = buf.text().paragraphs(); ParagraphList & pars = buf.text().paragraphs();
ParagraphList::iterator bgn = pars.begin(); ParagraphList::iterator bgn = pars.begin();
// The first paragraph of the area to be selected: // 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(); ParagraphList::iterator end = pars.end();
setCursor(cur, cur.pit(), 0); setCursor(cur, cur.pit(), 0);
Cursor old_cur = cur; Cursor const old_cur = cur;
needsUpdate |= cur.selHandle(true); needsUpdate |= cur.selHandle(true);
int const thistoclevel = start->layout().toclevel; int const thistoclevel = start->layout().toclevel;
@ -730,10 +730,9 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
if (finish != end) if (finish != end)
++finish; ++finish;
int toclevel;
// Seek the one (on same level) below // Seek the one (on same level) below
for (; finish != end; ++finish, cur.forwardPar()) { for (; finish != end; ++finish, cur.forwardPar()) {
toclevel = finish->layout().toclevel; int const toclevel = finish->layout().toclevel;
if (toclevel != Layout::NOT_IN_TOC && toclevel <= thistoclevel) if (toclevel != Layout::NOT_IN_TOC && toclevel <= thistoclevel)
break; break;
} }