From: Jean-Marc Lasgouttes Date: Mon, 29 Sep 2008 09:33:36 +0000 (+0000) Subject: constify X-Git-Tag: 1.6.10~3274 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=0442417d224ba0699f61c2756bd329d2f489622c;p=lyx.git constify git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26614 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/Text2.cpp b/src/Text2.cpp index fbb12222c7..de328e3e2a 100644 --- a/src/Text2.cpp +++ b/src/Text2.cpp @@ -197,7 +197,7 @@ void Text::setInsetFont(BufferView const & bv, pit_type pit, // return past-the-last paragraph influenced by a layout change on pit pit_type Text::undoSpan(pit_type pit) { - pit_type end = paragraphs().size(); + pit_type const end = paragraphs().size(); pit_type nextpit = pit + 1; if (nextpit == end) return nextpit; diff --git a/src/frontends/qt4/GuiParagraph.cpp b/src/frontends/qt4/GuiParagraph.cpp index 20d621808a..835bd520eb 100644 --- a/src/frontends/qt4/GuiParagraph.cpp +++ b/src/frontends/qt4/GuiParagraph.cpp @@ -344,7 +344,7 @@ void GuiParagraph::dispatchParams() bool GuiParagraph::haveMultiParSelection() { - Cursor cur = bufferview()->cursor(); + Cursor const & cur = bufferview()->cursor(); return cur.selection() && cur.selBegin().pit() != cur.selEnd().pit(); }