diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-02-11 17:16:49 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2022-02-12 12:39:52 +0100 |
commit | b5c4d1f50b1e2d44fbb3535ebedc565525ecc64f (patch) | |
tree | 8c0d9a9a0db2ff6e1d6253dd5e74620595395bc9 /src/gui/util | |
parent | f482e2a456491056e7576c1b52ead08429542631 (diff) |
QPkmHandler: make const what it never modified
Pick-to: 6.3 6.2 5.15
Change-Id: I0bda0d93ebe60d4923f3e9eb059cddb61192b1b5
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/gui/util')
-rw-r--r-- | src/gui/util/qpkmhandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/util/qpkmhandler.cpp b/src/gui/util/qpkmhandler.cpp index 0ad0a54a79..9b1337a658 100644 --- a/src/gui/util/qpkmhandler.cpp +++ b/src/gui/util/qpkmhandler.cpp @@ -57,7 +57,7 @@ struct PkmType quint32 bytesPerBlock; }; -static PkmType typeMap[5] = { +static constexpr PkmType typeMap[5] = { { 0x8D64, 8 }, // GL_ETC1_RGB8_OES { 0x9274, 8 }, // GL_COMPRESSED_RGB8_ETC2 { 0, 0 }, // unused (obsolete) |