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) {
|
if (globalLayerMaskInfo.size > -1) {
|
||||||
currentSize += globalLayerMaskInfo.size + 4;
|
currentSize += globalLayerMaskInfo.size + 4;
|
||||||
}
|
}
|
||||||
auto aliv = additionalLayerInfo.values();
|
for (const PSDAdditionalLayerInfo &v : additionalLayerInfo) {
|
||||||
for (auto &&v : aliv) {
|
|
||||||
currentSize += (12 + v.size);
|
currentSize += (12 + v.size);
|
||||||
if (v.signature == S_8B64)
|
if (v.signature == S_8B64)
|
||||||
currentSize += 4;
|
currentSize += 4;
|
||||||
|
|||||||
Reference in New Issue
Block a user