|
|
|
|
@ -68,12 +68,12 @@ gnc_commodity * gnc_import_select_commodity(const char * cusip,
|
|
|
|
|
|
|
|
|
|
for (GList *n = namespace_list; !retval && n; n = g_list_next (n))
|
|
|
|
|
{
|
|
|
|
|
const char *ns = n->data;
|
|
|
|
|
auto ns = static_cast<const char*>(n->data);
|
|
|
|
|
DEBUG("Looking at namespace %s", ns);
|
|
|
|
|
GList *comm_list = gnc_commodity_table_get_commodities (commodity_table, ns);
|
|
|
|
|
for (GList *m = comm_list; !retval && m; m = g_list_next (m))
|
|
|
|
|
{
|
|
|
|
|
gnc_commodity *com = m->data;
|
|
|
|
|
auto com = static_cast<gnc_commodity*>(m->data);
|
|
|
|
|
DEBUG("Looking at commodity %s", gnc_commodity_get_fullname (com));
|
|
|
|
|
if (!g_strcmp0 (gnc_commodity_get_cusip (com), cusip))
|
|
|
|
|
{
|