]> git.lyx.org Git - features.git/blobdiff - src/Text2.cpp
Constify.
[features.git] / 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();