From 5ac479af5e270a99e0459a756edc50f737235e01 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Fri, 13 Nov 2009 13:47:25 +0000 Subject: [PATCH] constify git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31968 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/lstrings.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/support/lstrings.cpp b/src/support/lstrings.cpp index 402b2c3119..221c676c6b 100644 --- a/src/support/lstrings.cpp +++ b/src/support/lstrings.cpp @@ -958,7 +958,7 @@ vector wrapToVec(docstring const & str, int ind, vector retval; while (s.size() > width) { // find the last space within the first 'width' chars - size_t i = s.find_last_of(' ', width - 1); + size_t const i = s.find_last_of(' ', width - 1); if (i == docstring::npos || i <= size_t(ind)) { // no space found s = s.substr(0, width - 3) + "..."; @@ -993,11 +993,11 @@ docstring wrapParas(docstring const & str, int const indent, if (str.empty()) return docstring(); - vector pars = getVectorFromString(str, from_ascii("\n"), true); + vector const pars = getVectorFromString(str, from_ascii("\n"), true); vector retval; - vector::iterator it = pars.begin(); - vector::iterator en = pars.end(); + vector::const_iterator it = pars.begin(); + vector::const_iterator const en = pars.end(); for (; it != en; ++it) { vector tmp = wrapToVec(*it, indent, width); size_t const nlines = tmp.size();