Compile.
authorMorten Johan Sorvig <morten.sorvig@nokia.com>
Thu, 3 May 2012 10:29:22 +0000 (12:29 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 4 May 2012 07:19:23 +0000 (09:19 +0200)
Clang is picky about the missing QT_FASTCALL and
cant't find the base fetchPixel/storePixel template
function.

Change-Id: I7c0c14835b3d428f8f95961dc603d809511d7165
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/gui/painting/qdrawhelper_p.h

index f502533..ec9efcd 100644 (file)
@@ -997,7 +997,7 @@ struct QPixelLayout
 };
 
 template <QPixelLayout::BPP bpp>
-uint fetchPixel(const uchar *src, int index);
+uint QT_FASTCALL fetchPixel(const uchar *src, int index);
 
 template <>
 inline uint QT_FASTCALL fetchPixel<QPixelLayout::BPP1LSB>(const uchar *src, int index)
@@ -1053,7 +1053,7 @@ typedef const uint *(QT_FASTCALL *FetchPixelsFunc)(uint *buffer, const uchar *sr
 
 
 template <QPixelLayout::BPP width>
-void storePixel(uchar *dest, int index, uint pixel);
+void QT_FASTCALL storePixel(uchar *dest, int index, uint pixel);
 
 template <>
 inline void QT_FASTCALL storePixel<QPixelLayout::BPP1LSB>(uchar *dest, int index, uint pixel)