summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrasanth Ullattil <prasanth.ullattil@nokia.com>2009-04-02 09:30:49 (GMT)
committerPrasanth Ullattil <prasanth.ullattil@nokia.com>2009-04-02 09:30:49 (GMT)
commitd399b858f9f3c50c82da197cd8bdd05110a092fe (patch)
tree9e63f9355ad64509ac5487a77582e5de71ef58bc
parent578188ee7899bfabc5ab45758f59acafaa26cc8c (diff)
downloadQt-d399b858f9f3c50c82da197cd8bdd05110a092fe.zip
Qt-d399b858f9f3c50c82da197cd8bdd05110a092fe.tar.gz
Qt-d399b858f9f3c50c82da197cd8bdd05110a092fe.tar.bz2
Compile error on VisualStudio 2005
Reviewed-by: Samuel
-rw-r--r--src/gui/painting/qdrawhelper.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/painting/qdrawhelper.cpp b/src/gui/painting/qdrawhelper.cpp
index 7e73304..ae936fe 100644
--- a/src/gui/painting/qdrawhelper.cpp
+++ b/src/gui/painting/qdrawhelper.cpp
@@ -488,6 +488,15 @@ uint QT_FASTCALL qt_fetchPixel<QImage::Format_ARGB4444_Premultiplied>(const ucha
return qt_colorConvert<quint32, qargb4444>(color, 0);
}
+template<>
+Q_STATIC_TEMPLATE_SPECIALIZATION
+uint QT_FASTCALL qt_fetchPixel<QImage::Format_Invalid>(const uchar *,
+ int ,
+ const QVector<QRgb> *)
+{
+ return 0;
+}
+
typedef uint (QT_FASTCALL *FetchPixelProc)(const uchar *scanLine, int x, const QVector<QRgb> *);
#define SPANFUNC_POINTER_FETCHPIXEL(Arg) qt_fetchPixel<QImage::Arg>