From 6200f4852b1a11689567f0d3ab87ab00c5760507 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Wed, 10 Mar 2010 15:11:31 +0000 Subject: [PATCH] Small simplification and remove unneeded std::. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33694 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Buffer.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index ce230e6360..eededacba2 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -2466,18 +2466,16 @@ void Buffer::getChildren(std::vector & clist, bool grand_children) con clist.push_back(child); if (grand_children) { // there might be grandchildren - std::vector glist = child->getChildren(); - for (vector::const_iterator git = glist.begin(); - git != glist.end(); ++git) - clist.push_back(*git); + vector glist = child->getChildren(); + clist.insert(clist.end(), glist.begin(), glist.end()); } } } -std::vector Buffer::getChildren(bool grand_children) const +vector Buffer::getChildren(bool grand_children) const { - std::vector v; + vector v; getChildren(v, grand_children); return v; }