From: Vincent van Ravesteijn Date: Wed, 26 Nov 2008 19:42:18 +0000 (+0000) Subject: Constify. X-Git-Tag: 2.0.0~7626 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=0488bee43f39f3510233fa65f428b7f4f430f404;p=lyx.git Constify. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27716 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/Text2.cpp b/src/Text2.cpp index c078e38ea9..d592e6637b 100644 --- a/src/Text2.cpp +++ b/src/Text2.cpp @@ -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();