summaryrefslogtreecommitdiff
path: root/src/openvg/qpixmapdata_vg.cpp
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2010-01-04 11:32:37 +1000
committerRhys Weatherley <rhys.weatherley@nokia.com>2010-01-04 11:35:17 +1000
commitb0e7ef2aa62a123b51920b8f0a08af07a9cd9d09 (patch)
tree7526fb682d51d9debde7f628c666837045d6fe40 /src/openvg/qpixmapdata_vg.cpp
parentfbccab463a8bd77d66adb9f96a67037f73f0019d (diff)
downloadqt4-tools-b0e7ef2aa62a123b51920b8f0a08af07a9cd9d09.tar.gz
Avoid deep QImage copies in the OpenVG paint engine
Task-number: QTBUG-7015 Reviewed-by: Daniel Pope
Diffstat (limited to 'src/openvg/qpixmapdata_vg.cpp')
-rw-r--r--src/openvg/qpixmapdata_vg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvg/qpixmapdata_vg.cpp b/src/openvg/qpixmapdata_vg.cpp
index 358ec4d825..7de22123aa 100644
--- a/src/openvg/qpixmapdata_vg.cpp
+++ b/src/openvg/qpixmapdata_vg.cpp
@@ -232,7 +232,7 @@ QPaintEngine* QVGPixmapData::paintEngine() const
// This function works around QImage::bits() making a deep copy if the
// QImage is not const. We force it to be const and then get the bits.
// XXX: Should add a QImage::constBits() in the future to replace this.
-static inline const uchar *qt_vg_imageBits(const QImage& image)
+const uchar *qt_vg_imageBits(const QImage& image)
{
return image.bits();
}