r22433 - gnucash/trunk/src/plugins/customer_import - Re-indentation of source code.

Mike Evans mikee at code.gnucash.org
Tue Oct 2 17:44:56 EDT 2012


Author: mikee
Date: 2012-10-02 17:44:56 -0400 (Tue, 02 Oct 2012)
New Revision: 22433
Trac: http://svn.gnucash.org/trac/changeset/22433

Modified:
   gnucash/trunk/src/plugins/customer_import/dialog-customer-import.c
Log:
Re-indentation of source code.
Done using the following options:

    astyle --indent=spaces=4 --brackets=break --pad-oper --pad-header --suffix=noneR

Modified: gnucash/trunk/src/plugins/customer_import/dialog-customer-import.c
===================================================================
--- gnucash/trunk/src/plugins/customer_import/dialog-customer-import.c	2012-10-02 21:42:22 UTC (rev 22432)
+++ gnucash/trunk/src/plugins/customer_import/dialog-customer-import.c	2012-10-02 21:44:56 UTC (rev 22433)
@@ -347,27 +347,27 @@
         {
             if (g_ascii_strcasecmp (type, "CUSTOMER") == 0)
             {
-              customer = gnc_search_customer_on_id (book, id);
-              if (!customer)
-              {
-                customer = gncCustomerCreate( book );
-                gncCustomerSetCurrency( customer, gnc_default_currency() );
-                (*n_customers_created)++;
+                customer = gnc_search_customer_on_id (book, id);
+                if (!customer)
+                {
+                    customer = gncCustomerCreate( book );
+                    gncCustomerSetCurrency( customer, gnc_default_currency() );
+                    (*n_customers_created)++;
                 }
-              else (*n_customers_updated)++;
+                else (*n_customers_updated)++;
             }
             else if (g_ascii_strcasecmp (type, "VENDOR") == 0)
             {
-              vendor = gnc_search_vendor_on_id (book, id);
-              if ( !vendor)
-              {
-                vendor = gncVendorCreate( book );
-                gncVendorSetCurrency( vendor, gnc_default_currency() );
-                (*n_customers_created)++;
+                vendor = gnc_search_vendor_on_id (book, id);
+                if ( !vendor)
+                {
+                    vendor = gncVendorCreate( book );
+                    gncVendorSetCurrency( vendor, gnc_default_currency() );
+                    (*n_customers_created)++;
                 }
-              else (*n_customers_updated)++;
+                else (*n_customers_updated)++;
             }
-            
+
             if (g_ascii_strcasecmp (type, "CUSTOMER") == 0)
             {
                 gncCustomerBeginEdit (customer);



More information about the gnucash-changes mailing list