From 082e515f6201e18ec3b5a8148609855f76f1bdd4 Mon Sep 17 00:00:00 2001 From: Mirco Miranda Date: Wed, 28 Oct 2026 08:45:25 +0100 Subject: [PATCH] PSD: Iterate directly over the QHash instead of creating a temporary QList --- src/imageformats/psd.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/imageformats/psd.cpp b/src/imageformats/psd.cpp index be066c2..5152437 100644 --- a/src/imageformats/psd.cpp +++ b/src/imageformats/psd.cpp @@ -175,8 +175,7 @@ struct PSDLayerAndMaskSection { if (globalLayerMaskInfo.size > -1) { currentSize += globalLayerMaskInfo.size + 4; } - auto aliv = additionalLayerInfo.values(); - for (auto &&v : aliv) { + for (const PSDAdditionalLayerInfo &v : additionalLayerInfo) { currentSize += (12 + v.size); if (v.signature == S_8B64) currentSize += 4;