Commit 6184491e authored by Friedemann Kleint's avatar Friedemann Kleint Committed by The Qt Project
Browse files

Fix MSVC warnings about scopes.


qddshandler.cpp(483) : warning C4258: 'i' : definition from the for loop is ignored; the definition from the enclosing scope is used
        qddshandler.cpp(477) : definition of 'i' ignored
        qddshandler.cpp(467) : definition of 'i' used
qddshandler.cpp(486) : warning C4258: 'i' : definition from the for loop is ignored; the definition from the enclosing scope is used
        qddshandler.cpp(477) : definition of 'i' ignored
        qddshandler.cpp(467) : definition of 'i' used

Change-Id: Ib911578900f012db20d9e50bdffa5d1ca9896a7e
Reviewed-by: default avatarIvan Komissarov <ABBAPOH@me.com>
Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@digia.com>
Showing with 3 additions and 3 deletions
...@@ -474,9 +474,9 @@ static QImage readATI2(QDataStream &s, quint32 width, quint32 height) ...@@ -474,9 +474,9 @@ static QImage readATI2(QDataStream &s, quint32 width, quint32 height)
QRgb arr[16]; QRgb arr[16];
memset(arr, 0, sizeof(QRgb) * 16); memset(arr, 0, sizeof(QRgb) * 16);
setAlphaDXT<Five>(arr, alpha1); setAlphaDXT<Five>(arr, alpha1);
for (int i = 0; i < 16; ++i) { for (int k = 0; k < 16; ++k) {
quint8 a = qAlpha(arr[i]); quint8 a = qAlpha(arr[k]);
arr[i] = qRgba(0, 0, a, 0); arr[k] = qRgba(0, 0, a, 0);
} }
setAlphaDXT<Five>(arr, alpha2); setAlphaDXT<Five>(arr, alpha2);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment