Skip to content

Commit fd83d1a

Browse files
author
wonder
committed
It's a good habit to use initialize a variable before adding to it
git-svn-id: http://svn.osgeo.org/qgis/trunk@14872 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent e0960e4 commit fd83d1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/symbology-ng/qgslinesymbollayerv2.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ void QgsMarkerLineSymbolLayerV2::renderPolylineCentral( const QPolygonF& points,
489489
// find the segment where the central point lies
490490
it = points.constBegin();
491491
last = *it;
492-
qreal last_at = 0, next_at;
492+
qreal last_at = 0, next_at = 0;
493493
QPointF next;
494494
int segment = 0;
495495
for ( ++it; it != points.constEnd(); ++it )

0 commit comments

Comments
 (0)