mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[import-commodity-matcher.cpp] convert to cpp
This commit is contained in:
parent
f1c70a00ad
commit
e48e6e2af9
@ -15,7 +15,7 @@ add_subdirectory(qif-imp)
|
||||
|
||||
set (generic_import_SOURCES
|
||||
import-account-matcher.c
|
||||
import-commodity-matcher.c
|
||||
import-commodity-matcher.cpp
|
||||
import-backend.cpp
|
||||
import-format-dialog.c
|
||||
import-match-picker.cpp
|
||||
|
@ -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))
|
||||
{
|
@ -25,6 +25,10 @@
|
||||
#ifndef IMPORT_COMMODITY_MATCHER_H
|
||||
#define IMPORT_COMMODITY_MATCHER_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "gnc-commodity.h"
|
||||
|
||||
/**
|
||||
@ -63,5 +67,10 @@ gnc_commodity * gnc_import_select_commodity(const char * cusip,
|
||||
const char * default_fullname,
|
||||
const char * default_mnemonic);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
/**@}*/
|
||||
|
@ -348,7 +348,7 @@ gnucash/import-export/customer-import/dialog-customer-import-gui.c
|
||||
gnucash/import-export/customer-import/gnc-plugin-customer-import.c
|
||||
gnucash/import-export/import-account-matcher.c
|
||||
gnucash/import-export/import-backend.cpp
|
||||
gnucash/import-export/import-commodity-matcher.c
|
||||
gnucash/import-export/import-commodity-matcher.cpp
|
||||
gnucash/import-export/import-format-dialog.c
|
||||
gnucash/import-export/import-main-matcher.cpp
|
||||
gnucash/import-export/import-match-picker.cpp
|
||||
|
Loading…
Reference in New Issue
Block a user