summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Barron <jbarron@trolltech.com>2009-08-26 12:24:37 (GMT)
committerJason Barron <jbarron@trolltech.com>2009-08-26 12:32:38 (GMT)
commit2eaf970b886c4c5c70fbc8d3081f8b572d0cfdf5 (patch)
treea6352a37e33cc92acc67952fb757964675cae93a
parent38d04ac09a3916ad33489e0d60e87c32f86fd117 (diff)
downloadQt-2eaf970b886c4c5c70fbc8d3081f8b572d0cfdf5.zip
Qt-2eaf970b886c4c5c70fbc8d3081f8b572d0cfdf5.tar.gz
Qt-2eaf970b886c4c5c70fbc8d3081f8b572d0cfdf5.tar.bz2
Remove superfluous '.data()' call from dashStroker.
The extra ".data()" call is not needed here because QScopedPointer overloads operator!() to do the right thing here. Reviewed-by: Eskil Blomfeldt
-rw-r--r--src/gui/painting/qpaintengine_raster.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qpaintengine_raster.cpp b/src/gui/painting/qpaintengine_raster.cpp
index 72bb164..5f6e1d6 100644
--- a/src/gui/painting/qpaintengine_raster.cpp
+++ b/src/gui/painting/qpaintengine_raster.cpp
@@ -791,7 +791,7 @@ void QRasterPaintEngine::updatePen(const QPen &pen)
if(pen_style == Qt::SolidLine) {
s->stroker = &d->basicStroker;
} else if (pen_style != Qt::NoPen) {
- if (!d->dashStroker.data())
+ if (!d->dashStroker)
d->dashStroker.reset(new QDashStroker(&d->basicStroker));
if (pen.isCosmetic()) {
d->dashStroker->setClipRect(d->deviceRect);