Fix compiler complaints about dereferencing type-punned pointers.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15849 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton 2007-04-07 18:24:53 +00:00
parent 18c4cbf122
commit a2269e623e

View File

@ -484,15 +484,21 @@ GncOwner * gncInvoiceGetOwner (GncInvoice *invoice)
static QofInstance*
qofInvoiceGetOwner (GncInvoice *invoice)
{
GncOwner *owner;
if(!invoice) { return NULL; }
return QOF_INSTANCE(&invoice->owner);
owner = &invoice->owner;
return QOF_INSTANCE(owner);
}
static QofInstance*
qofInvoiceGetBillTo (GncInvoice *invoice)
{
GncOwner *billto;
if(!invoice) { return NULL; }
return QOF_INSTANCE(&invoice->billto);
billto = &invoice->billto;
return QOF_INSTANCE(billto);
}
Timespec gncInvoiceGetDateOpened (GncInvoice *invoice)