QImage{Reader,Writer}: remove unused local typedef (GCC 4.8 warning)
authorMarc Mutz <marc.mutz@kdab.com>
Fri, 10 Aug 2012 22:03:24 +0000 (00:03 +0200)
committerQt by Nokia <qt-info@nokia.com>
Sat, 11 Aug 2012 20:35:37 +0000 (22:35 +0200)
GCC 4.8 warns:

  warning: typedef â€˜PluginKeyMapConstIterator’ locally defined but not used [-Wunused-local-typedefs]

Change-Id: I0225708b590ac3d72ab3cb8f61e686091c187053
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/gui/image/qimagereader.cpp
src/gui/image/qimagewriter.cpp

index 67a23df..5395b4e 100644 (file)
@@ -226,7 +226,6 @@ static QImageIOHandler *createReadHandlerHelper(QIODevice *device,
 
 #ifndef QT_NO_LIBRARY
     typedef QMultiMap<int, QString> PluginKeyMap;
-    typedef PluginKeyMap::const_iterator PluginKeyMapConstIterator;
 
     // check if we have plugins that support the image format
     QFactoryLoader *l = loader();
index ef94627..b9c3387 100644 (file)
@@ -138,7 +138,6 @@ static QImageIOHandler *createWriteHandlerHelper(QIODevice *device,
 
 #ifndef QT_NO_LIBRARY
     typedef QMultiMap<int, QString> PluginKeyMap;
-    typedef PluginKeyMap::const_iterator PluginKeyMapConstIterator;
 
     // check if any plugins can write the image
     QFactoryLoader *l = loader();