Skip to content

Commit 112871e

Browse files
author
g_j_m
committed
Fix compiler warnings for spit plugin
git-svn-id: http://svn.osgeo.org/qgis/trunk@6488 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 0ba3c91 commit 112871e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/plugins/spit/qgsshapefile.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ bool QgsShapeFile::scanGeometries()
9494
qApp->processEvents();
9595

9696
OGRFeature *feat;
97-
int currentType = 0;
97+
unsigned int currentType = 0;
9898
bool multi = false;
9999
while((feat = ogrLayer->GetNextFeature()))
100100
{
@@ -272,7 +272,7 @@ bool QgsShapeFile::insertLayer(QString dbname, QString schema, QString geom_col,
272272

273273
QString query = "CREATE TABLE "+schema+"."+table_name+"(gid int4 PRIMARY KEY, ";
274274

275-
for(int n=0; n<column_names.size() && result; n++){
275+
for(uint n=0; n<column_names.size() && result; n++){
276276
if(!column_names[n][0].isLetter())
277277
result = false;
278278

@@ -369,7 +369,7 @@ bool QgsShapeFile::insertLayer(QString dbname, QString schema, QString geom_col,
369369
QString geometry(geo_temp);
370370

371371
QString quotes;
372-
for(int n=0; n<column_types.size(); n++){
372+
for(uint n=0; n<column_types.size(); n++){
373373
bool numericType(false);
374374
if(column_types[n] == "int" || column_types[n] == "float")
375375
{

0 commit comments

Comments
 (0)