mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Small simplification and remove unneeded std::.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33694 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
fd507aecf4
commit
6200f4852b
@ -2466,18 +2466,16 @@ void Buffer::getChildren(std::vector<Buffer *> & clist, bool grand_children) con
|
||||
clist.push_back(child);
|
||||
if (grand_children) {
|
||||
// there might be grandchildren
|
||||
std::vector<Buffer *> glist = child->getChildren();
|
||||
for (vector<Buffer *>::const_iterator git = glist.begin();
|
||||
git != glist.end(); ++git)
|
||||
clist.push_back(*git);
|
||||
vector<Buffer *> glist = child->getChildren();
|
||||
clist.insert(clist.end(), glist.begin(), glist.end());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
std::vector<Buffer *> Buffer::getChildren(bool grand_children) const
|
||||
vector<Buffer *> Buffer::getChildren(bool grand_children) const
|
||||
{
|
||||
std::vector<Buffer *> v;
|
||||
vector<Buffer *> v;
|
||||
getChildren(v, grand_children);
|
||||
return v;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user