]> git.evergreen-ils.org Git - OpenSRF.git/commit
Continued const-correctness improvement from Scott McKellar:
authormiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Sun, 30 Sep 2007 17:54:25 +0000 (17:54 +0000)
committermiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Sun, 30 Sep 2007 17:54:25 +0000 (17:54 +0000)
commit1d6d0446b3a3b5bee4077e7a22e9e176216ba5c3
tree351985d33064c4c32b9c0f0fc6d23f7824db5455
parentd60cafb081ea773efe43ddc3f2474ada17120964
Continued const-correctness improvement from Scott McKellar:

1. I changed the signature of jsonObjectDecodeClass so that it accepts
a non-const pointer parameter.  Since it doesn't change the contents
of the jsonObject, there's no need to confine it to non-const
jsonObjects.

2. I replaced jsonObjectGetKey() with jsonObjectGetKeyConst().

3. In one spot I captured the return value of jsonObjectGetIndex()
with a const pointer instead of a non-const pointer.

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1095 9efc2488-bf62-4759-914b-345cdb29e865
include/opensrf/osrf_json.h
src/libopensrf/osrf_json_tools.c