Skip to content

Commit

Permalink
Fix compiler warnings for spit plugin
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@6488 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Feb 2, 2007
1 parent 0ba3c91 commit 112871e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plugins/spit/qgsshapefile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ bool QgsShapeFile::scanGeometries()
qApp->processEvents();

OGRFeature *feat;
int currentType = 0;
unsigned int currentType = 0;
bool multi = false;
while((feat = ogrLayer->GetNextFeature()))
{
Expand Down Expand Up @@ -272,7 +272,7 @@ bool QgsShapeFile::insertLayer(QString dbname, QString schema, QString geom_col,

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

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

Expand Down Expand Up @@ -369,7 +369,7 @@ bool QgsShapeFile::insertLayer(QString dbname, QString schema, QString geom_col,
QString geometry(geo_temp);

QString quotes;
for(int n=0; n<column_types.size(); n++){
for(uint n=0; n<column_types.size(); n++){
bool numericType(false);
if(column_types[n] == "int" || column_types[n] == "float")
{
Expand Down

0 comments on commit 112871e

Please sign in to comment.