Fix unused-function warning in qdrawhelper.cpp
storePixel<QPixelLayout::BPP32> would have been called by storePixels<QPixelLayout::BPP32> but that function has an overload that uses memcpy instead. So it's really unused. Found by Clang 3.4. Change-Id: I661804e273486d3469221fdd362a24cd77cfb8a7 Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
This commit is contained in:
parent
b765a0b19d
commit
fd22e89593
@ -374,12 +374,6 @@ inline void QT_FASTCALL storePixel<QPixelLayout::BPP24>(uchar *dest, int index,
|
||||
reinterpret_cast<quint24 *>(dest)[index] = quint24(pixel);
|
||||
}
|
||||
|
||||
template <>
|
||||
inline void QT_FASTCALL storePixel<QPixelLayout::BPP32>(uchar *dest, int index, uint pixel)
|
||||
{
|
||||
reinterpret_cast<uint *>(dest)[index] = pixel;
|
||||
}
|
||||
|
||||
template <QPixelLayout::BPP width>
|
||||
inline void QT_FASTCALL storePixels(uchar *dest, const uint *src, int index, int count)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user