Fix another crash caused by qof changes.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9654 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton 2003-10-27 00:21:52 +00:00
parent f40e64ce2c
commit d02b218875
3 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2003-10-26 David Hampton <hampton@employees.org>
* src/engine/qofid.[ch]: Fix another crash caused by qof changes.
2003-10-25 David Hampton <hampton@employees.org>
* src/gnome/druid-stock-split.c: Fix crash caused by qof changes.

View File

@ -102,10 +102,10 @@ qof_entity_set_guid (QofEntity *ent, const GUID *guid)
qof_collection_insert_entity (col, ent);
}
GUID *
const GUID *
qof_entity_get_guid (QofEntity *ent)
{
if (!ent) return NULL;
if (!ent) return guid_null();
return &ent->guid;
}

View File

@ -115,7 +115,7 @@ void qof_entity_init (QofEntity *, QofIdType, QofCollection *);
void qof_entity_release (QofEntity *);
/* Return the GUID of this entity */
GUID * qof_entity_get_guid (QofEntity *);
const GUID * qof_entity_get_guid (QofEntity *);
/** collections of entities */
QofCollection * qof_collection_new (QofIdType type);