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:
Vincent van Ravesteijn 2010-03-10 15:11:31 +00:00
parent fd507aecf4
commit 6200f4852b

View File

@ -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;
}