mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Minor fixups.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29561 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
73b48c22e5
commit
cc23968475
@ -1028,13 +1028,13 @@ string const getStringFromVector(vector<string> const & vec,
|
||||
string const & delim)
|
||||
{
|
||||
string str;
|
||||
int i = 0;
|
||||
for (vector<string>::const_iterator it = vec.begin();
|
||||
it != vec.end(); ++it) {
|
||||
vector<string>::const_iterator it = vec.begin();
|
||||
vector<string>::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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user