From a6f803cde6c1676a079f29a2581e3e704d47b2f1 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Wed, 9 Sep 2020 03:49:27 +0200 Subject: [PATCH] Prefer appending vector to a vector with += rather than a custom implementation QVector has ad-hoc code to do so. --- scene.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scene.cpp b/scene.cpp index 80c687a2df..3b25503e34 100644 --- a/scene.cpp +++ b/scene.cpp @@ -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;