Rewrite apparently confusing comment.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23581 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
John Ralls 2013-12-20 00:44:18 +00:00
parent c1f3f4cde5
commit ad96f1cd23

View File

@ -1043,8 +1043,10 @@ add_price(GNCPriceDB *db, GNCPrice *p)
return TRUE;
}
/* the gnc_pricedb_add_price() function will use p, adding a ref, so
treat p as read-only if this function succeeds. (Huh ???) */
/* If gnc_pricedb_add_price() succeeds, it takes ownership of the
passed-in GNCPrice and inserts it into the pricedb. Writing to this
pointer afterwards will have interesting results, so don't.
*/
gboolean
gnc_pricedb_add_price(GNCPriceDB *db, GNCPrice *p)
{