summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorten Johan Sorvig <morten.sorvig@nokia.com>2012-05-03 12:29:22 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-04 09:19:23 +0200
commit1014de4b2f6d4995d5e93efb70618169042c8b93 (patch)
tree4263bf71343b6306b492194db852d1850c75fd73
parent2368809a282c252bcf97af51165aa27ef3add466 (diff)
Compile.
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>
-rw-r--r--src/gui/painting/qdrawhelper_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/painting/qdrawhelper_p.h b/src/gui/painting/qdrawhelper_p.h
index f502533443..ec9efcd49a 100644
--- a/src/gui/painting/qdrawhelper_p.h
+++ b/src/gui/painting/qdrawhelper_p.h
@@ -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)