[gdal-dev] int versus bool in C++ method args
Kurt Schwehr
schwehr at gmail.com
Tue Feb 20 10:44:49 PST 2018
Awesome! Thanks.
On Tue, Feb 20, 2018 at 10:37 AM, Even Rouault <even.rouault at spatialys.com>
wrote:
> On mardi 20 février 2018 07:23:48 CET Kurt Schwehr wrote:
>
> > Hi Even,
>
> >
>
> > With https://trac.osgeo.org/gdal/changeset/41510, would it be possible
> to
>
> > use a bool for bDelete since this is a member of a C++ class? Any C API
>
> > call could easily convert from an int to a bool and then we have cleaner
>
> > internals for the C++ side of the house. Or is there some other reason
>
> > that had you using an int boolean?
>
> >
>
> > OGRErr removeCurve( int iIndex, int bDelete = TRUE );*
>
>
>
> Hi Kurt,
>
>
>
> good point. I blindly copied it from similar OGRGeometryCollection::
> removeGeometry()
>
>
>
> Just changed the new methods to use bool
>
>
>
> Even
>
>
>
> --
>
> Spatialys - Geospatial professional services
>
> http://www.spatialys.com
>
--
--
http://schwehr.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20180220/c66cfaac/attachment.html>
More information about the gdal-dev
mailing list