uhh, never mind,. revert the last patch

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6476 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 2002-01-02 06:32:36 +00:00
parent 20f13f9cd2
commit a6cbfe7948
6 changed files with 6 additions and 8 deletions

View File

@ -178,8 +178,7 @@ gnc_commodity_end_handler(gpointer data_for_children,
g_return_val_if_fail(tree, FALSE);
com = gnc_commodity_new(NULL, NULL, NULL, NULL, 0,
(GNCBook *)gdata->bookdata);
com = gnc_commodity_new(NULL, NULL, NULL, NULL, 0);
for(achild = tree->xmlChildrenNode; achild; achild = achild->next)
{

View File

@ -581,7 +581,7 @@ tt_act_handler( xmlNodePtr node, gpointer data )
SchedXaction.c:xaccSchedXactionInit... */
com = gnc_commodity_new( "template", "template",
"template", "template",
1, txd->book );
1 );
xaccAccountSetCommodity( acc, com );
}

View File

@ -387,7 +387,7 @@ gnc_commodity_import_legacy(GNCBook *book, const char * currency_name)
if(!old) {
old = gnc_commodity_new(currency_name,
GNC_COMMODITY_NS_LEGACY, currency_name,
0, 100000, book);
0, 100000);
old = gnc_commodity_table_insert(table, old);
}
return old;

View File

@ -1961,8 +1961,7 @@ commodity_restore_end_handler(gpointer data_for_children,
cpi->space,
cpi->id,
cpi->xcode,
cpi->fraction,
pstatus->book);
cpi->fraction);
if(comm)
{
gnc_commodity_table *ctab;

View File

@ -714,7 +714,7 @@ dom_tree_to_commodity_ref_no_engine(xmlNodePtr node, GNCBook *book)
} else {
g_strstrip(space_str);
g_strstrip(id_str);
c = gnc_commodity_new(NULL, space_str, id_str, NULL, 0, book);
c = gnc_commodity_new(NULL, space_str, id_str, NULL, 0);
}
g_free(space_str);

View File

@ -35,7 +35,7 @@ test_dom_tree_to_commodity_ref(void)
test_str1 = get_random_string();
test_str2 = get_random_string();
test_com1 = gnc_commodity_new(NULL, test_str1, test_str2, NULL, 0, NULL);
test_com1 = gnc_commodity_new(NULL, test_str1, test_str2, NULL, 0);
test_node = commodity_ref_to_dom_tree("test-com", test_com1);
test_com2 = dom_tree_to_commodity_ref_no_engine(test_node, NULL);