summaryrefslogtreecommitdiffstats
path: root/src/openvg
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-07-01 02:00:16 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-07-01 02:00:16 (GMT)
commitc5b5cd3d704bf7c84634188d44c5208fbe55e25b (patch)
tree154a2ae5e8d38171956dd61faf2ad0c794dc4e1f /src/openvg
parent436a71e8950ea5a050f95b5889b85e5fafb2e716 (diff)
downloadQt-c5b5cd3d704bf7c84634188d44c5208fbe55e25b.zip
Qt-c5b5cd3d704bf7c84634188d44c5208fbe55e25b.tar.gz
Qt-c5b5cd3d704bf7c84634188d44c5208fbe55e25b.tar.bz2
OpenVG compile fix - use const_cast instead of static_cast
Reviewed-by: trustme
Diffstat (limited to 'src/openvg')
-rw-r--r--src/openvg/qpaintengine_vg.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/openvg/qpaintengine_vg.cpp b/src/openvg/qpaintengine_vg.cpp
index 37945bf..c7fe604 100644
--- a/src/openvg/qpaintengine_vg.cpp
+++ b/src/openvg/qpaintengine_vg.cpp
@@ -1320,11 +1320,11 @@ QPainterState *QVGPaintEngine::createState(QPainterState *orig) const
if (!orig) {
return new QVGPainterState();
} else {
- QVGPaintEnginePrivate *d =
- static_cast<QVGPaintEnginePrivate *>(d_ptr);
+ Q_D(const QVGPaintEngine);
+ QVGPaintEnginePrivate *d2 = const_cast<QVGPaintEnginePrivate*>(d);
QVGPainterState *origState = static_cast<QVGPainterState *>(orig);
- origState->savedDirty = d->dirty;
- d->dirty = 0;
+ origState->savedDirty = d2->dirty;
+ d2->dirty = 0;
return new QVGPainterState(*origState);
}
}