[open-ils-commits] r17222 - trunk/Open-ILS/src/c-apps (scottmk)

svn at svn.open-ils.org svn at svn.open-ils.org
Sat Aug 14 21:11:42 EDT 2010


Author: scottmk
Date: 2010-08-14 21:11:41 -0400 (Sat, 14 Aug 2010)
New Revision: 17222

Modified:
   trunk/Open-ILS/src/c-apps/test_json_query.c
Log:
Pedantic change for const-correctness: replaced two calls to 
jsonObjectGetKey() with calls to jsonObjectGetKeyConst().

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


Modified: trunk/Open-ILS/src/c-apps/test_json_query.c
===================================================================
--- trunk/Open-ILS/src/c-apps/test_json_query.c	2010-08-15 00:27:08 UTC (rev 17221)
+++ trunk/Open-ILS/src/c-apps/test_json_query.c	2010-08-15 01:11:41 UTC (rev 17222)
@@ -180,10 +180,10 @@
 
 	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 );



More information about the open-ils-commits mailing list