[Gnucash-changes] remove unnecessary casts

Neil Williams codehelp at cvs.gnucash.org
Sun Sep 4 12:45:22 EDT 2005


Log Message:
-----------
remove unnecessary casts

Tags:
----
gnucash-gnome2-dev

Modified Files:
--------------
    gnucash/src/business/business-core/file:
        gnc-customer-xml-v2.c
        gnc-employee-xml-v2.c
        gnc-job-xml-v2.c
        gnc-order-xml-v2.c
        gnc-tax-table-xml-v2.c

Revision Data
-------------
Index: gnc-job-xml-v2.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/business/business-core/file/gnc-job-xml-v2.c,v
retrieving revision 1.4.4.6
retrieving revision 1.4.4.7
diff -Lsrc/business/business-core/file/gnc-job-xml-v2.c -Lsrc/business/business-core/file/gnc-job-xml-v2.c -u -r1.4.4.6 -r1.4.4.7
--- src/business/business-core/file/gnc-job-xml-v2.c
+++ src/business/business-core/file/gnc-job-xml-v2.c
@@ -85,7 +85,7 @@
     maybe_add_string (ret, job_reference_string, gncJobGetReference (job));
 
     xmlAddChild(ret, gnc_owner_to_dom_tree (job_owner_string,
-					    (GncOwner*)gncJobGetOwner (job)));
+					    gncJobGetOwner (job)));
 
     xmlAddChild(ret, int_to_dom_tree(job_active_string,
 				     gncJobGetActive (job)));
Index: gnc-customer-xml-v2.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/business/business-core/file/gnc-customer-xml-v2.c,v
retrieving revision 1.10.4.6
retrieving revision 1.10.4.7
diff -Lsrc/business/business-core/file/gnc-customer-xml-v2.c -Lsrc/business/business-core/file/gnc-customer-xml-v2.c -u -r1.10.4.6 -r1.10.4.7
--- src/business/business-core/file/gnc-customer-xml-v2.c
+++ src/business/business-core/file/gnc-customer-xml-v2.c
@@ -126,11 +126,11 @@
     xmlAddChild
       (ret,
        commodity_ref_to_dom_tree(cust_currency_string,
-				 (gnc_commodity*)gncCustomerGetCurrency (cust)));
+				 gncCustomerGetCurrency (cust)));
 
     xmlAddChild (ret, int_to_dom_tree (cust_taxtableoverride_string,
 				       gncCustomerGetTaxTableOverride (cust)));
-    taxtable = (GncTaxTable*)gncCustomerGetTaxTable (cust);
+    taxtable = gncCustomerGetTaxTable (cust);
     if (taxtable)
       xmlAddChild (ret, guid_to_dom_tree (cust_taxtable_string,
 					  qof_instance_get_guid(QOF_INSTANCE(taxtable))));
Index: gnc-employee-xml-v2.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/business/business-core/file/gnc-employee-xml-v2.c,v
retrieving revision 1.6.4.6
retrieving revision 1.6.4.7
diff -Lsrc/business/business-core/file/gnc-employee-xml-v2.c -Lsrc/business/business-core/file/gnc-employee-xml-v2.c -u -r1.6.4.6 -r1.6.4.7
--- src/business/business-core/file/gnc-employee-xml-v2.c
+++ src/business/business-core/file/gnc-employee-xml-v2.c
@@ -115,7 +115,7 @@
     xmlAddChild
       (ret,
        commodity_ref_to_dom_tree(employee_currency_string,
-				 (gnc_commodity*)gncEmployeeGetCurrency (employee)));
+				 gncEmployeeGetCurrency (employee)));
 
     ccard_acc = gncEmployeeGetCCard (employee);
     if (ccard_acc)
Index: gnc-order-xml-v2.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/business/business-core/file/gnc-order-xml-v2.c,v
retrieving revision 1.4.4.6
retrieving revision 1.4.4.7
diff -Lsrc/business/business-core/file/gnc-order-xml-v2.c -Lsrc/business/business-core/file/gnc-order-xml-v2.c -u -r1.4.4.6 -r1.4.4.7
--- src/business/business-core/file/gnc-order-xml-v2.c
+++ src/business/business-core/file/gnc-order-xml-v2.c
@@ -88,7 +88,7 @@
                                       gncOrderGetID (order)));
 
     xmlAddChild(ret, gnc_owner_to_dom_tree (order_owner_string,
-					    (GncOwner*)gncOrderGetOwner (order)));
+					    gncOrderGetOwner (order)));
 
     ts = gncOrderGetDateOpened (order);
     xmlAddChild(ret, timespec_to_dom_tree (order_opened_string, &ts));
Index: gnc-tax-table-xml-v2.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/business/business-core/file/gnc-tax-table-xml-v2.c,v
retrieving revision 1.3.4.7
retrieving revision 1.3.4.8
diff -Lsrc/business/business-core/file/gnc-tax-table-xml-v2.c -Lsrc/business/business-core/file/gnc-tax-table-xml-v2.c -u -r1.3.4.7 -r1.3.4.8
--- src/business/business-core/file/gnc-tax-table-xml-v2.c
+++ src/business/business-core/file/gnc-tax-table-xml-v2.c
@@ -589,7 +589,7 @@
   GncTaxTable *table;
   gint32 count;
   
-  table = (GncTaxTable*)gncCustomerGetTaxTable(cust);
+  table = gncCustomerGetTaxTable(cust);
   if (table) {
     count = GPOINTER_TO_INT(g_hash_table_lookup(ht, table));
     count++;
@@ -605,7 +605,7 @@
   GncTaxTable *table;
   gint32 count;
 
-  table = (GncTaxTable*)gncVendorGetTaxTable(vendor);
+  table = gncVendorGetTaxTable(vendor);
   if (table) {
     count = GPOINTER_TO_INT(g_hash_table_lookup(ht, table));
     count++;


More information about the gnucash-changes mailing list