From 6883dd903ea7274bb8113eff0412a6b2b4c5630f Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Sat, 19 Sep 2026 01:35:15 -0400 Subject: [PATCH] Omit a type name where possible This also allows omitting a header (though it gets included implicitly by `` instead, but that's fine). This also makes our code slightly more amenable to change, of course. --- src/gfx/pal_packing.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/gfx/pal_packing.cpp b/src/gfx/pal_packing.cpp index b3376f45..d4049a15 100644 --- a/src/gfx/pal_packing.cpp +++ b/src/gfx/pal_packing.cpp @@ -3,7 +3,6 @@ #include "gfx/pal_packing.hpp" #include -#include #include #include #include @@ -398,9 +397,7 @@ std::pair, size_t> overloadAndRemove(std::vector c std::vector assignments; // Begin with all color sets queued up for insertion - for (std::queue queue(std::deque(RANGE(sortedColorSetIDs))); - !queue.empty(); - queue.pop()) { + for (std::queue queue({RANGE(sortedColorSetIDs)}); !queue.empty(); queue.pop()) { ColorSetAttrs const &attrs = queue.front(); // Valid until the `queue.pop()` verbosePrint(VERB_TRACE, "Handling color set %zu\n", attrs.colorSetIndex);