[QGIS Commit] r14872 - trunk/qgis/src/core/symbology-ng

svn_qgis at osgeo.org svn_qgis at osgeo.org
Wed Dec 8 14:43:40 EST 2010


Author: wonder
Date: 2010-12-08 11:43:40 -0800 (Wed, 08 Dec 2010)
New Revision: 14872

Modified:
   trunk/qgis/src/core/symbology-ng/qgslinesymbollayerv2.cpp
Log:
It's a good habit to use initialize a variable before adding to it


Modified: trunk/qgis/src/core/symbology-ng/qgslinesymbollayerv2.cpp
===================================================================
--- trunk/qgis/src/core/symbology-ng/qgslinesymbollayerv2.cpp	2010-12-08 19:37:39 UTC (rev 14871)
+++ trunk/qgis/src/core/symbology-ng/qgslinesymbollayerv2.cpp	2010-12-08 19:43:40 UTC (rev 14872)
@@ -489,7 +489,7 @@
   // find the segment where the central point lies
   it = points.constBegin();
   last = *it;
-  qreal last_at = 0, next_at;
+  qreal last_at = 0, next_at = 0;
   QPointF next;
   int segment = 0;
   for ( ++it; it != points.constEnd(); ++it )



More information about the QGIS-commit mailing list