Skip to content
Permalink
Browse files
fix a warning with msvc
git-svn-id: http://svn.osgeo.org/qgis/trunk@7755 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Dec 10, 2007
1 parent 1a2a96b commit b3c5f3043c9f40b8b6dacdb5ae46701b459bb1be
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/gpx/qgsgpxprovider.cpp
@@ -276,7 +276,7 @@ bool QgsGPXProvider::getNextFeature(QgsFeature& feature)

// A track consists of several segments. Add all those segments into one.
int totalPoints = 0;;
for (int i = 0; i < trk->segments.size(); i ++)
for (std::vector<TrackSegment>::size_type i = 0; i < trk->segments.size(); i ++)
{
totalPoints += trk->segments[i].points.size();
}
@@ -304,7 +304,7 @@ bool QgsGPXProvider::getNextFeature(QgsFeature& feature)
std::memcpy(geo + 5, &totalPoints, 4);

int thisPoint = 0;
for(int k = 0; k < trk->segments.size(); k++)
for(std::vector<TrackSegment>::size_type k = 0; k < trk->segments.size(); k++)
{
int nPoints = trk->segments[k].points.size();
for (int i = 0; i < nPoints; ++i)

0 comments on commit b3c5f30

Please sign in to comment.