From cc239684750d3a42fe527c2c0020f1e8dd15a937 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Thu, 7 May 2009 13:53:28 +0000 Subject: [PATCH] Minor fixups. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29561 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 044efb5c28..9f4824270b 100644 --- a/src/support/lstrings.cpp +++ b/src/support/lstrings.cpp @@ -1028,13 +1028,13 @@ string const getStringFromVector(vector const & vec, string const & delim) { string str; - int i = 0; - for (vector::const_iterator it = vec.begin(); - it != vec.end(); ++it) { + vector::const_iterator it = vec.begin(); + vector::const_iterator en = vec.end(); + for (; it != en; ++it) { string item = trim(*it); if (item.empty()) continue; - if (i++ > 0) + if (!str.empty()) str += delim; str += item; }