Fix compiler warnings for spit plugin

git-svn-id: http://svn.osgeo.org/qgis/trunk@6488 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
g_j_m 2007-02-02 07:35:00 +00:00
parent 0ba3c9106d
commit 112871e4b4

View File

@ -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()))
{
@ -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;
@ -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")
{