2006-10-05 Nikolas Zimmermann <zimmermann@kde.org>
[WebKit-https.git] / WebCore / kcanvas / device / qt / KRenderingPaintServerQt.cpp
index 04fbe599d13954a8581995ef2e06d2a2e77d6636..3ba3f42cf02b4a595a7e7ebfc6151e734196d45a 100644 (file)
@@ -52,8 +52,8 @@ void KRenderingPaintServerQt::setPenProperties(const KRenderingStrokePainter& st
     } else if(strokePainter.strokeJoinStyle() == JOIN_ROUND)
         pen.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;