mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
18c4cbf122
commit
a2269e623e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user