diff options
author | J-P Nurmi <jpnurmi@digia.com> | 2014-04-29 11:50:37 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-04-30 08:27:20 +0200 |
commit | ce5835e6f0d1ed64ace6732d8881ea97a3cb7f33 (patch) | |
tree | f20f1963d8c3034722309960135455c4212ba93b | |
parent | 5221e15f92858fefedb845e0293a7879ef4f13fe (diff) |
Eliminate a static global QString in qquickpath.cpp
Change-Id: Iad3838f1d215c02555be0acd5f313eaefd4f90a0
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
-rw-r--r-- | src/quick/util/qquickpath.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/util/qquickpath.cpp b/src/quick/util/qquickpath.cpp index 25e40d8eb6..7e8b71da63 100644 --- a/src/quick/util/qquickpath.cpp +++ b/src/quick/util/qquickpath.cpp @@ -320,8 +320,6 @@ void QQuickPath::endpoint(QList<AttributePoint> &attributePoints, const QString } } -static QString percentString(QLatin1String("_qfx_percent")); - void QQuickPath::processPath() { Q_D(QQuickPath); @@ -358,6 +356,8 @@ QPainterPath QQuickPath::createPath(const QPointF &startPoint, const QPointF &en qreal startY = d->startY.isValid() ? d->startY.value : startPoint.y(); path.moveTo(startX, startY); + const QString percentString = QStringLiteral("_qfx_percent"); + bool usesPercent = false; int index = 0; foreach (QQuickPathElement *pathElement, d->_pathElements) { |