QImageReader: simplify _qt_BuiltInFormats
authorMarc Mutz <marc.mutz@kdab.com>
Sun, 13 Oct 2013 17:11:28 +0000 (19:11 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 25 Dec 2013 19:54:14 +0000 (20:54 +0100)
commit2af6bf1a5943c2a75dae56d78992eb8ca1826af0
treee5278ae17c3c9664f35bc3e83b89290d5342ff74
parent8a5c261954836e2aeac53f5e6581135ffaa9a2e0
QImageReader: simplify _qt_BuiltInFormats

By construction of the _qt_BuiltInFormatType enum, the .type in
_qt_BuiltInFormats exactly equals its position. So there's no
need to store it explicitly.

Effects on Linux AMD64 GCC 4.9-trunk release stripped:
  text: -16B
  data: -64B
  relocs: +-0 (of course)

Change-Id: Ib68c32de42d264f27bbd8a863538dd78b1ba4507
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
src/gui/image/qimagereader.cpp