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

QVector has ad-hoc code to do so.
This commit is contained in:
Aleix Pol 2020-09-09 03:49:27 +02:00 committed by Aleix Pol Gonzalez
parent 76fbb43798
commit a6f803cde6

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 // Push the child window pixmaps onto the stack, remember we're visiting the pixmaps
// in the depth-first search manner. // in the depth-first search manner.
const auto children = windowPixmap->children(); stack += windowPixmap->children();
for (WindowPixmap *child : children)
stack.push(child);
} }
return quads; return quads;