summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2011-06-14 08:41:36 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2011-06-14 09:09:14 (GMT)
commit524dc28aa9172964622fe1764d1cc97a457b6ed3 (patch)
treea5f2bbeb5436c00b718c4d01fe4136f0d58b613e
parentc169eeaf3886955d74b41f150e1035ee93c8c5c4 (diff)
downloadQt-524dc28aa9172964622fe1764d1cc97a457b6ed3.zip
Qt-524dc28aa9172964622fe1764d1cc97a457b6ed3.tar.gz
Qt-524dc28aa9172964622fe1764d1cc97a457b6ed3.tar.bz2
Silence a compiler warning about unhandled enum in switch
The value is impossible due to the construct, but the compiler complains nonetheless. So just add a value handled in the switch and a comment letting the reader know that it can't happen. Reviewed-By: Samuel Rødal
-rw-r--r--src/gui/painting/qtextureglyphcache.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/painting/qtextureglyphcache.cpp b/src/gui/painting/qtextureglyphcache.cpp
index 4bb4759..fdba9c9 100644
--- a/src/gui/painting/qtextureglyphcache.cpp
+++ b/src/gui/painting/qtextureglyphcache.cpp
@@ -308,6 +308,10 @@ QImage QTextureGlyphCache::textureMapForGlyph(glyph_t g, QFixed subPixelPosition
format = QFontEngineFT::Format_Mono;
imageFormat = QImage::Format_Mono;
break;
+ case Raster_RGBMask:
+ // impossible condition (see the if-clause above)
+ // this option is here only to silence a compiler warning
+ break;
};
QFontEngineFT *ft = static_cast<QFontEngineFT*> (m_current_fontengine);