r16212 - gnucash/trunk - Revert some qof_instance_get_guid() calls to qof_entity_get_guid().

Andreas Köhler andi5 at cvs.gnucash.org
Mon Jun 25 13:18:45 EDT 2007


Author: andi5
Date: 2007-06-25 13:18:28 -0400 (Mon, 25 Jun 2007)
New Revision: 16212
Trac: http://svn.gnucash.org/trac/changeset/16212

Modified:
   gnucash/trunk/lib/libqof/backend/file/qsf-backend.c
   gnucash/trunk/lib/libqof/qof/qofbook.c
   gnucash/trunk/lib/libqof/qof/qofbook.h
   gnucash/trunk/lib/libqof/qof/qofbookmerge.c
   gnucash/trunk/lib/libqof/qof/qofinstance.c
   gnucash/trunk/lib/libqof/qof/qofinstance.h
   gnucash/trunk/lib/libqof/qof/qofquery.c
   gnucash/trunk/lib/libqof/qof/qofquerycore.c
   gnucash/trunk/lib/libqof/qof/qofreference.c
   gnucash/trunk/lib/libqof/qof/qofsession.c
   gnucash/trunk/src/app-utils/gnc-component-manager.c
   gnucash/trunk/src/backend/postgres/book.c
   gnucash/trunk/src/backend/postgres/putil.h
   gnucash/trunk/src/backend/postgres/table.m4
   gnucash/trunk/src/business/business-core/gncEmployee.h
   gnucash/trunk/src/engine/Account.h
   gnucash/trunk/src/engine/SchedXaction.h
   gnucash/trunk/src/engine/Split.c
   gnucash/trunk/src/engine/Split.h
   gnucash/trunk/src/engine/Transaction.c
   gnucash/trunk/src/engine/Transaction.h
   gnucash/trunk/src/engine/gnc-budget.h
   gnucash/trunk/src/engine/gnc-lot.c
   gnucash/trunk/src/engine/gnc-lot.h
   gnucash/trunk/src/engine/gnc-pricedb.h
   gnucash/trunk/src/gnome/dialog-chart-export.c
   gnucash/trunk/src/gnome/top-level.c
Log:
Revert some qof_instance_get_guid() calls to qof_entity_get_guid().

Those two functions were merged into one, qof_instance_get_guid(), in
r15773, but they returned different values if the parameter was NULL.
Some code depends on the return value being guid_null(), or maybe even
NULL, so revert the changes entity->instance, where the entity is not
guaranteed to be non-NULL.




More information about the gnucash-patches mailing list