[Gnucash-changes] r13570 - gnucash/trunk/lib/libqof/backend/file - Remove deprecated

Neil Williams codehelp at cvs.gnucash.org
Thu Mar 9 12:04:25 EST 2006


Author: codehelp
Date: 2006-03-09 12:04:24 -0500 (Thu, 09 Mar 2006)
New Revision: 13570
Trac: http://svn.gnucash.org/trac/changeset/13570

Modified:
   gnucash/trunk/lib/libqof/backend/file/qsf-backend.c
Log:
Remove deprecated
        glib function g_strncasecmp in favour of g_ascii_strncasecmp

Modified: gnucash/trunk/lib/libqof/backend/file/qsf-backend.c
===================================================================
--- gnucash/trunk/lib/libqof/backend/file/qsf-backend.c	2006-03-09 17:03:57 UTC (rev 13569)
+++ gnucash/trunk/lib/libqof/backend/file/qsf-backend.c	2006-03-09 17:04:24 UTC (rev 13570)
@@ -24,8 +24,6 @@
 #define _GNU_SOURCE
 
 #include "config.h"
-#undef G_DISABLE_DEPRECATED /* for g_strncasecmp */
-
 #include "qof.h"
 #include "qof-backend-qsf.h"
 #include "qsf-xml.h"
@@ -210,7 +208,7 @@
 	p = strchr (book_path, ':');
 	if (p) {
 		path = g_strdup (book_path);
-		if (!g_strncasecmp(path, "file:", 5)) {
+		if (!g_ascii_strncasecmp(path, "file:", 5)) {
 			p = g_new(char, strlen(path) - 5 + 1);
 			strcpy(p, path + 5);
 		}
@@ -788,7 +786,7 @@
 		if(0 == safe_strcmp(qof_param->param_type, QOF_TYPE_COLLECT))
 		{
 			qsf_coll = qof_param->param_getfcn(ent, qof_param);
-			if(qsf_coll) { 
+			if(qsf_coll) {
 				params->qof_param = qof_param;
 				params->output_node = object_node;
 				if(qof_collection_count(qsf_coll) > 0) {



More information about the gnucash-changes mailing list