Skip to content

Commit

Permalink
fix a warning with msvc
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7755 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Dec 10, 2007
1 parent 926b75c commit c32f209
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/gpx/qgsgpxprovider.cpp
Expand Up @@ -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();
}
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit c32f209

Please sign in to comment.