From: scottmk Date: Sun, 15 Aug 2010 01:11:41 +0000 (+0000) Subject: Pedantic change for const-correctness: replaced two calls to X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a38ddfa93efd2aea8a19b770c03ea7098c658677;p=Evergreen.git Pedantic change for const-correctness: replaced two calls to jsonObjectGetKey() with calls to jsonObjectGetKeyConst(). M Open-ILS/src/c-apps/test_json_query.c git-svn-id: svn://svn.open-ils.org/ILS/trunk@17222 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/c-apps/test_json_query.c b/Open-ILS/src/c-apps/test_json_query.c index 441d08b9dc..9da97322b7 100644 --- a/Open-ILS/src/c-apps/test_json_query.c +++ b/Open-ILS/src/c-apps/test_json_query.c @@ -180,10 +180,10 @@ static int test_json_query( const char* json_query ) { int flags = 0; - if ( obj_is_true( jsonObjectGetKey( hash, "distinct" ) ) ) + if ( obj_is_true( jsonObjectGetKeyConst( hash, "distinct" ))) flags |= SELECT_DISTINCT; - if ( obj_is_true( jsonObjectGetKey( hash, "no_i18n" ) ) ) + if ( obj_is_true( jsonObjectGetKeyConst( hash, "no_i18n" ))) flags |= DISABLE_I18N; char* sql_query = buildQuery( NULL, hash, flags );