Skip to content

Commit

Permalink
Replace tabs with spaces causing compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
geographika committed Oct 11, 2018
1 parent 53e5d1c commit e7fc3ca
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions mapscript/swiginc/layer.i
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
map->layers[map->numlayers]->index = map->numlayers;
map->layerorder[map->numlayers] = map->numlayers;
map->numlayers++;
MS_REFCNT_INCR(map->layers[map->numlayers-1]);
MS_REFCNT_INCR(map->layers[map->numlayers-1]);

return (map->layers[map->numlayers-1]);
}
Expand All @@ -87,8 +87,8 @@
/*if (!self->map) {*/
if (self) {
if(freeLayer(self)==MS_SUCCESS) {
free(self);
}
free(self);
}
}
}

Expand Down Expand Up @@ -138,7 +138,7 @@
return msWriteLayerToString(self);
}

#ifdef SWIGCSHARP
#ifdef SWIGCSHARP
%apply SWIGTYPE *SETREFERENCE {classObj *classobj};
#endif
int insertClass(classObj *classobj, int index=-1)
Expand All @@ -154,10 +154,10 @@
classObj *removeClass(int index)
{
classObj* c = msRemoveClass(self, index);
if (c != NULL) {
MS_REFCNT_INCR(c);
}
return c;
if (c != NULL) {
MS_REFCNT_INCR(c);
}
return c;
}

int open()
Expand All @@ -182,7 +182,7 @@
self->connectiontype = oldconnectiontype;

return msLayerWhichShapes(self, rect, MS_FALSE);
}
}

%newobject nextShape;
shapeObj *nextShape()
Expand All @@ -197,8 +197,8 @@
status = msLayerNextShape(self, shape);
if(status != MS_SUCCESS) {
msFreeShape(shape);
free(shape);
return NULL;
free(shape);
return NULL;
} else
return shape;
}
Expand Down Expand Up @@ -259,12 +259,12 @@
%newobject getClass;
classObj *getClass(int i)
{
classObj *result=NULL;
classObj *result=NULL;
if (i >= 0 && i < self->numclasses) {
result=self->class[i];
MS_REFCNT_INCR(result);
}
return result;
MS_REFCNT_INCR(result);
}
return result;
}

char *getItem(int i)
Expand Down Expand Up @@ -307,13 +307,13 @@
map->query.filter.type = MS_EXPRESSION;

map->query.layer = self->index;
map->query.rect = map->extent;
map->query.rect = map->extent;

status = self->status;
self->status = MS_ON;
status = self->status;
self->status = MS_ON;
retval = msQueryByFilter(map);
self->status = status;
return retval;
return retval;
}

int queryByAttributes(mapObj *map, char *qitem, char *qstring, int mode)
Expand Down Expand Up @@ -535,12 +535,12 @@
}

value = (char *) msLookupHashTable(&(self->metadata), name);
/*
Umberto, 05/17/2006
Exceptions should be reserved for situations when a serious error occurred
and normal program flow must be interrupted.
In this case returning null should be more that enough.
*/
/*
Umberto, 05/17/2006
Exceptions should be reserved for situations when a serious error occurred
and normal program flow must be interrupted.
In this case returning null should be more that enough.
*/
#ifndef SWIGJAVA
if (!value) {
msSetError(MS_HASHERR, "Key %s does not exist", "getMetaData", name);
Expand Down Expand Up @@ -626,7 +626,7 @@

void setProcessingKey(const char *key, const char *value)
{
msLayerSetProcessingKey( self, key, value );
msLayerSetProcessingKey( self, key, value );
}

/* this method is deprecated ... should use addProcessing() */
Expand Down

0 comments on commit e7fc3ca

Please sign in to comment.