]> git.lyx.org Git - features.git/commitdiff
constify
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 29 Sep 2008 09:33:36 +0000 (09:33 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 29 Sep 2008 09:33:36 +0000 (09:33 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26614 a592a061-630c-0410-9148-cb99ea01b6c8

src/Text2.cpp
src/frontends/qt4/GuiParagraph.cpp

index fbb12222c7094337448c6df13a125311f61d1682..de328e3e2a4a32537f17a283aa064c69e34eded3 100644 (file)
@@ -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;
index 20d621808a52494912b07ac0cda100e24942b1f3..835bd520ebc4b57eaada06c7e1221d1e963ffc71 100644 (file)
@@ -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();
 }