mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2026-11-06 09:08:50 -05:00
PSD: Iterate directly over the QHash instead of creating a temporary
QList
This commit is contained in:
committed by
Mirco Miranda
parent
94bc9726ea
commit
082e515f62
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user