2006-10-05 Nikolas Zimmermann <zimmermann@kde.org>
[WebKit-https.git] / WebCore / kcanvas / device / qt / RenderPathQt.cpp
index 382cd5a42e1faf5eb2c1c2ba2ca9cf34fcc0224c..fcffac938fbf36a56bcb14d01a3d3ebf4a185e1d 100644 (file)
@@ -57,8 +57,8 @@ static QPainterPath getPathStroke(const QPainterPath &path, const KRenderingStro
     } else if(strokePainter.strokeJoinStyle() == JOIN_ROUND)
         s.setJoinStyle(Qt::RoundJoin);
 
-    KCDashArray dashes = strokePainter.dashArray();
-    unsigned int dashLength = !dashes.isEmpty() ? dashes.count() : 0;
+    const KCDashArray& dashes = strokePainter.dashArray();
+    unsigned int dashLength = !dashes.isEmpty() ? dashes.size() : 0;
     if(dashLength) {
         QVector<qreal> pattern;
         unsigned int count = (dashLength % 2) == 0 ? dashLength : dashLength * 2;