Prefer appending vector to a vector with += rather than a custom implementation

QVector has ad-hoc code to do so.
master
Aleix Pol 2020-09-09 03:49:27 +02:00 committed by Aleix Pol Gonzalez
parent 76fbb43798
commit a6f803cde6
1 changed files with 1 additions and 3 deletions

View File

@ -1062,9 +1062,7 @@ WindowQuadList Scene::Window::makeContentsQuads() const
// Push the child window pixmaps onto the stack, remember we're visiting the pixmaps
// in the depth-first search manner.
const auto children = windowPixmap->children();
for (WindowPixmap *child : children)
stack.push(child);
stack += windowPixmap->children();
}
return quads;