mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix gcc warning from qof's lookup macro
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17671 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
98373d0ccb
commit
d4448d19aa
@ -131,7 +131,7 @@ GType qof_book_get_type(void);
|
|||||||
/** Lookup an entity by guid, returning pointer to the entity */
|
/** Lookup an entity by guid, returning pointer to the entity */
|
||||||
#define QOF_BOOK_LOOKUP_ENTITY(book,guid,e_type,c_type) ({ \
|
#define QOF_BOOK_LOOKUP_ENTITY(book,guid,e_type,c_type) ({ \
|
||||||
QofInstance *val = NULL; \
|
QofInstance *val = NULL; \
|
||||||
if (guid && book) { \
|
if ((guid != NULL) && (book != NULL)) { \
|
||||||
QofCollection *col; \
|
QofCollection *col; \
|
||||||
col = qof_book_get_collection (book, e_type); \
|
col = qof_book_get_collection (book, e_type); \
|
||||||
val = qof_collection_lookup_entity (col, guid); \
|
val = qof_collection_lookup_entity (col, guid); \
|
||||||
|
Loading…
Reference in New Issue
Block a user