mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 06:19:36 +00:00
Another one for Abdel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26999 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
afcc0e0490
commit
721b269732
@ -1626,15 +1626,15 @@ bool BufferParams::moduleCanBeAdded(string const & modName) const
|
|||||||
mit = getModules().begin(); // reset
|
mit = getModules().begin(); // reset
|
||||||
vector<string>::const_iterator rit = reqs.begin();
|
vector<string>::const_iterator rit = reqs.begin();
|
||||||
vector<string>::const_iterator ren = reqs.end();
|
vector<string>::const_iterator ren = reqs.end();
|
||||||
bool foundOne = false;
|
bool foundone = false;
|
||||||
for (; rit != ren; ++rit) {
|
for (; rit != ren; ++rit) {
|
||||||
if (find(mit, men, *rit) != men) {
|
if (find(mit, men, *rit) != men) {
|
||||||
foundOne = true;
|
foundone = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return foundOne;
|
return foundone;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user