[OPEN-ILS-DEV] PATCH: oils_utils.[ch] (const-correctness)
Mike Rylander
mrylander at gmail.com
Sun Nov 25 16:30:25 EST 2007
On Nov 21, 2007 12:23 AM, Scott McKellar <mck9 at swbell.net> wrote:
> This patch applies the const qualifier to various things:
>
> 1. To a number of function parameters.
>
> 2. To a couple of local variables, so that we can eventually change
> jsonObjectGetString() so as to return a const pointer, as it should.
>
> 3. To the pointer returned by oilsFMGetObject().
>
Applied.
[snip]
>
> If the constness proves too restrictive, we can revisit the matter
> or find a workaround. If all else fails we can use an evil cast
> somewhere. In practice I doubt that the issue will arise.
>
As do I, and I'm fine with removing an unused foot-gun. Thanks Scott!
--
Mike Rylander
| VP, Research and Design
| Equinox Software, Inc. / The Evergreen Experts
| phone: 1-877-OPEN-ILS (673-6457)
| email: miker at esilibrary.com
| web: http://www.esilibrary.com
More information about the Open-ils-dev
mailing list