summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2010-02-03 10:26:50 (GMT)
committerBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2010-02-03 12:11:33 (GMT)
commit09fe8e377fea67b4279521e3cb08bb937ef65474 (patch)
tree42f4a90f62b6d3880c2f261bcaaafa3c6587612c
parent80e114ad0b7974894858a17153d6f54546835066 (diff)
downloadQt-09fe8e377fea67b4279521e3cb08bb937ef65474.zip
Qt-09fe8e377fea67b4279521e3cb08bb937ef65474.tar.gz
Qt-09fe8e377fea67b4279521e3cb08bb937ef65474.tar.bz2
Optimize QPathClipper::pathToRect.
Patch speaks for itself :-) Reviewed-by: samuel
-rw-r--r--src/gui/painting/qpathclipper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qpathclipper.cpp b/src/gui/painting/qpathclipper.cpp
index 5702ede..bc81514 100644
--- a/src/gui/painting/qpathclipper.cpp
+++ b/src/gui/painting/qpathclipper.cpp
@@ -1691,7 +1691,7 @@ bool QPathClipper::pathToRect(const QPainterPath &path, QRectF *rect)
return false;
if (rect)
- *rect = QRectF(QPointF(x1, y1), QPointF(x2, y2));
+ rect->setCoords(x1, y1, x2, y2);
return true;
}