Fix another crash caused by qof changes.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9655 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton
2003-10-27 00:23:29 +00:00
parent 26203fabcd
commit 04de1826b9
3 changed files with 5 additions and 3 deletions

View File

@@ -17,6 +17,8 @@
* src/gnome/ui/gnc-main-window-ui.xml: Add the "Close Books" menu
item.
* src/engine/qofid.[ch]: Fix another crash caused by qof changes.
2003-10-25 David Hampton <hampton@employees.org>
* src/gnome-utils/dialog-account.[ch]:

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);