Re: Question about QofIdType assertion in QofCollection

Derek Atkins derek at ihtfp.com
Mon Dec 29 07:22:45 EST 2014


Because it's a constant. 

-derek

Sent on my mobile. Please forgive any typos.

----- Reply message -----
From: "Chenxiong Qi" <qcxhome at gmail.com>
To: "gnucash-devel at gnucash.org" <gnucash-devel at gnucash.org>
Subject: Question about QofIdType assertion in QofCollection
Date: Mon, Dec 29, 2014 3:35 AM

Hi all,

In qof_collection_add_entity and qof_collection_insert_entity, it expects,

g_return_if_fail (col->e_type == ent->e_type);

Is this the actual expectation by checking the equivalence of pointer
locations, why not the values?

-- 
Regards,
Chenxiong Qi
_______________________________________________
gnucash-devel mailing list
gnucash-devel at gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


More information about the gnucash-devel mailing list