Pedantic change for const-correctness: replaced two calls to
authorscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 15 Aug 2010 01:11:41 +0000 (01:11 +0000)
committerscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 15 Aug 2010 01:11:41 +0000 (01:11 +0000)
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

Open-ILS/src/c-apps/test_json_query.c

index 441d08b..9da9732 100644 (file)
@@ -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 );