mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Some more const-correctness in engine functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18873 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -1261,7 +1261,7 @@ xaccSplitsComputeValue (GList *splits, const Split * skip_me,
|
||||
}
|
||||
|
||||
gnc_numeric
|
||||
xaccSplitConvertAmount (const Split *split, Account * account)
|
||||
xaccSplitConvertAmount (const Split *split, const Account * account)
|
||||
{
|
||||
gnc_commodity *acc_com, *to_commodity;
|
||||
Transaction *txn;
|
||||
|
||||
@@ -75,7 +75,7 @@ GType gnc_split_get_type(void);
|
||||
* in particular we want to convert the Split to be in to_commodity.
|
||||
* Returns the amount.
|
||||
*/
|
||||
gnc_numeric xaccSplitConvertAmount (const Split *split, Account * account);
|
||||
gnc_numeric xaccSplitConvertAmount (const Split *split, const Account * account);
|
||||
|
||||
/*-----------------------------------------------------------------------
|
||||
* Splits
|
||||
|
||||
@@ -968,7 +968,7 @@ xaccTransGetAccountAmount (const Transaction *trans, const Account *acc)
|
||||
}
|
||||
|
||||
gnc_numeric
|
||||
xaccTransGetAccountConvRate(Transaction *txn, Account *acc)
|
||||
xaccTransGetAccountConvRate(const Transaction *txn, const Account *acc)
|
||||
{
|
||||
gnc_numeric amount, value, convrate;
|
||||
GList *splits;
|
||||
|
||||
@@ -398,7 +398,7 @@ gnc_numeric xaccTransGetAccountAmount (const Transaction *trans,
|
||||
*
|
||||
* If 'acc' is NULL, return unity.
|
||||
*/
|
||||
gnc_numeric xaccTransGetAccountConvRate(Transaction *txn, Account *acc);
|
||||
gnc_numeric xaccTransGetAccountConvRate(const Transaction *txn, const Account *acc);
|
||||
|
||||
/** Get the account balance for the specified account after the last
|
||||
split in the specified transaction. */
|
||||
|
||||
Reference in New Issue
Block a user