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:
parent
76fbb43798
commit
a6f803cde6
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue