]> git.lyx.org Git - features.git/commitdiff
Constify.
authorVincent van Ravesteijn <vfr@lyx.org>
Wed, 26 Nov 2008 19:42:18 +0000 (19:42 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Wed, 26 Nov 2008 19:42:18 +0000 (19:42 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27716 a592a061-630c-0410-9148-cb99ea01b6c8

src/Text2.cpp

index c078e38ea9e9b1572a7736bac16c711d599d7499..d592e6637b7e887631a48947afd5df7089e593e8 100644 (file)
@@ -810,7 +810,7 @@ bool Text::deleteEmptyParagraphMechanism(Cursor & cur,
 
        // Whether a common inset is found and whether the cursor is still in 
        // the same paragraph (possibly nested).
-       bool same_par = depth < cur.depth() && old.pit() == cur[depth].pit();
+       bool const same_par = depth < cur.depth() && old.pit() == cur[depth].pit();
        bool const same_par_pos = depth == cur.depth() - 1 && same_par 
                && old.pos() == cur[depth].pos();