r16970 - gnucash/branches/2.2/src/import-export/qif-import - [r16952] QIF importer: adjust order of "or" conditions for faster performance.

Andreas Köhler andi5 at cvs.gnucash.org
Thu Feb 28 17:08:36 EST 2008


Author: andi5
Date: 2008-02-28 17:08:36 -0500 (Thu, 28 Feb 2008)
New Revision: 16970
Trac: http://svn.gnucash.org/trac/changeset/16970

Modified:
   gnucash/branches/2.2/src/import-export/qif-import/qif-file.scm
Log:
[r16952] QIF importer: adjust order of "or" conditions for faster performance.

Committed by cedayiv.


Modified: gnucash/branches/2.2/src/import-export/qif-import/qif-file.scm
===================================================================
--- gnucash/branches/2.2/src/import-export/qif-import/qif-file.scm	2008-02-28 22:08:27 UTC (rev 16969)
+++ gnucash/branches/2.2/src/import-export/qif-import/qif-file.scm	2008-02-28 22:08:36 UTC (rev 16970)
@@ -701,9 +701,9 @@
       ;; just ignore the format ambiguity.  Otherwise, it's really an
       ;; error.  ATM since there's no way to correct the error let's 
       ;; just leave it be.
-      (if (or (all-formats-equivalent? getter parser equiv-thunk formats 
-                                       objects printer errormsg errortype)      
-              (eq? on-error 'guess-on-ambiguity))
+      (if (or (eq? on-error 'guess-on-ambiguity)
+              (all-formats-equivalent? getter parser equiv-thunk formats 
+                                       objects printer errormsg errortype))
           (set! format (car formats))
           (begin 
             (errormsg errortype formats)



More information about the gnucash-changes mailing list