diff options
author | Jason Barron <jbarron@trolltech.com> | 2009-08-26 12:24:37 (GMT) |
---|---|---|
committer | Jason Barron <jbarron@trolltech.com> | 2009-08-26 12:32:38 (GMT) |
commit | 2eaf970b886c4c5c70fbc8d3081f8b572d0cfdf5 (patch) | |
tree | a6352a37e33cc92acc67952fb757964675cae93a /src | |
parent | 38d04ac09a3916ad33489e0d60e87c32f86fd117 (diff) | |
download | Qt-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
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/painting/qpaintengine_raster.cpp | 2 |
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); |