[import-account-matcher.cpp] convert to cpp

This commit is contained in:
Christopher Lam 2023-07-13 22:05:41 +08:00
parent e48e6e2af9
commit 0e48488964
3 changed files with 5 additions and 6 deletions

View File

@ -14,7 +14,7 @@ add_subdirectory(qif-imp)
set (generic_import_SOURCES
import-account-matcher.c
import-account-matcher.cpp
import-commodity-matcher.cpp
import-backend.cpp
import-format-dialog.c

View File

@ -368,10 +368,9 @@ Account * gnc_import_select_account(GtkWidget *parent,
if (account_online_id_value)
{
AccountOnlineMatch match = {NULL, 0, account_online_id_value};
retval =
gnc_account_foreach_descendant_until(gnc_get_current_root_account (),
test_acct_online_id_match,
(void*)&match);
retval = static_cast<Account*>(gnc_account_foreach_descendant_until (gnc_get_current_root_account (),
test_acct_online_id_match,
(void*)&match));
if (!retval && match.count == 1 &&
new_account_default_type == ACCT_TYPE_NONE)
retval = match.partial_match;

View File

@ -346,7 +346,7 @@ gnucash/import-export/csv-imp/gnc-tokenizer-fw.cpp
gnucash/import-export/customer-import/dialog-customer-import.c
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-account-matcher.cpp
gnucash/import-export/import-backend.cpp
gnucash/import-export/import-commodity-matcher.cpp
gnucash/import-export/import-format-dialog.c