gnucash master: Fix error of incorrect argument passed to gnc_commodity_new.
J.Alex Aycinena
alex.aycinena at code.gnucash.org
Mon Jul 10 14:39:16 EDT 2017
Updated via https://github.com/Gnucash/gnucash/commit/fb609ff0 (commit)
from https://github.com/Gnucash/gnucash/commit/eb55b5f9 (commit)
commit fb609ff02843ee1915b58bb7e124907b9bb883b4
Author: Alex Aycinena <alex.aycinena at gmail.com>
Date: Mon Jul 10 11:38:42 2017 -0700
Fix error of incorrect argument passed to gnc_commodity_new.
diff --git a/src/app-utils/test/test-gnc-ui-util.c b/src/app-utils/test/test-gnc-ui-util.c
index b943954..8236200 100644
--- a/src/app-utils/test/test-gnc-ui-util.c
+++ b/src/app-utils/test/test-gnc-ui-util.c
@@ -65,8 +65,8 @@ test_book_use_book_currency( Fixture *fixture, gconstpointer pData )
const gchar *cur;
const gchar *pol;
Account *acct, *acc;
- gnc_commodity *com = gnc_commodity_new(fixture-> book, NULL, NULL, "USD",
- NULL, NULL);
+ gnc_commodity *com = gnc_commodity_new(fixture-> book, "US Dollar",
+ "CURRENCY", "USD", "0", 100);
g_test_message( "Testing with no currency accounting method selected" );
cur = gnc_book_get_book_currency_name( fixture-> book );
Summary of changes:
src/app-utils/test/test-gnc-ui-util.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
More information about the gnucash-changes
mailing list