static void set_lot_account (gpointer pObject, gpointer pValue) { GNCLot* lot; Account* pAccount; g_return_if_fail (pObject != NULL && GNC_IS_LOT (pObject)); g_return_if_fail (pValue == NULL || GNC_IS_ACCOUNT (pValue)); lot = GNC_LOT (pObject); pAccount = GNC_ACCOUNT (pValue); if (pAccount != NULL) { xaccAccountInsertLot (pAccount, lot); } }
static void set_lot_account( gpointer pObject, /*@ null @*/ gpointer pValue ) { GNCLot* lot; Account* pAccount; g_return_if_fail( pObject != NULL /*&& GNC_IS_LOT(pObject)*/ ); // g_return_if_fail( pValue == NULL || GNC_IS_ACCOUNT(pValue) ); lot = (GNCLot*)(pObject); pAccount = (Account*)(pValue); if ( pAccount != NULL ) { xaccAccountInsertLot( pAccount, lot ); } }