Make some parameters const

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16762 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Phil Longstaff 2007-12-29 17:43:46 +00:00
parent 8ab8f16536
commit 8de27ea72d
2 changed files with 6 additions and 6 deletions

View File

@ -76,7 +76,7 @@ static QofLogModule log_module = GNC_MOD_LOT;
/* ============================================================== */
gboolean
xaccAccountHasTrades (Account *acc)
xaccAccountHasTrades (const Account *acc)
{
gnc_commodity *acc_comm;
SplitList *splits, *node;
@ -266,7 +266,7 @@ GetOrMakeLotOrphanAccount (Account *root, gnc_commodity * currency)
/* ============================================================== */
void
xaccAccountSetDefaultGainAccount (Account *acc, Account *gain_acct)
xaccAccountSetDefaultGainAccount (Account *acc, const Account *gain_acct)
{
KvpFrame *cwd;
KvpValue *vvv;
@ -292,7 +292,7 @@ xaccAccountSetDefaultGainAccount (Account *acc, Account *gain_acct)
/* ============================================================== */
Account *
xaccAccountGetDefaultGainAccount (Account *acc, gnc_commodity * currency)
xaccAccountGetDefaultGainAccount (const Account *acc, const gnc_commodity * currency)
{
Account *gain_acct = NULL;
KvpFrame *cwd;

View File

@ -104,7 +104,7 @@ gnc_numeric xaccSplitGetCapGains(Split *);
* TRUE if this is a trading account, else it returns
* FALSE.
*/
gboolean xaccAccountHasTrades (Account *);
gboolean xaccAccountHasTrades (const Account *);
/** The xaccAccountFindEarliestOpenLot() method is a handy
* utility routine for finding the earliest open lot in
@ -133,7 +133,7 @@ GNCLot * xaccAccountFindLatestOpenLot (Account *acc,
* currency name. IOf there is no default account for this
* currency, NULL will be returned.
*/
Account * xaccAccountGetDefaultGainAccount (Account *acc, gnc_commodity * currency);
Account * xaccAccountGetDefaultGainAccount (const Account *acc, const gnc_commodity * currency);
/** The xaccAccountSetDefaultGainAccount() routine can be used
* to set the account to which realized gains/losses will be
@ -141,7 +141,7 @@ Account * xaccAccountGetDefaultGainAccount (Account *acc, gnc_commodity * curren
* value of the "/lot-mgmt/gains-act/XXX" key, where XXX is the
* unique currency name of the currency of gains account.
*/
void xaccAccountSetDefaultGainAccount (Account *acc, Account *gains_acct);
void xaccAccountSetDefaultGainAccount (Account *acc, const Account *gains_acct);
/** The xaccSplitGetCapGainsSplit() routine returns the split
* that records the cap gains for this split. It returns NULL