Skip to content

Commit 0e48488

Browse files
[import-account-matcher.cpp] convert to cpp
1 parent e48e6e2 commit 0e48488

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

gnucash/import-export/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ add_subdirectory(qif-imp)
1414

1515

1616
set (generic_import_SOURCES
17-
import-account-matcher.c
17+
import-account-matcher.cpp
1818
import-commodity-matcher.cpp
1919
import-backend.cpp
2020
import-format-dialog.c

gnucash/import-export/import-account-matcher.c renamed to gnucash/import-export/import-account-matcher.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -368,10 +368,9 @@ Account * gnc_import_select_account(GtkWidget *parent,
368368
if (account_online_id_value)
369369
{
370370
AccountOnlineMatch match = {NULL, 0, account_online_id_value};
371-
retval =
372-
gnc_account_foreach_descendant_until(gnc_get_current_root_account (),
373-
test_acct_online_id_match,
374-
(void*)&match);
371+
retval = static_cast<Account*>(gnc_account_foreach_descendant_until (gnc_get_current_root_account (),
372+
test_acct_online_id_match,
373+
(void*)&match));
375374
if (!retval && match.count == 1 &&
376375
new_account_default_type == ACCT_TYPE_NONE)
377376
retval = match.partial_match;

po/POTFILES.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ gnucash/import-export/csv-imp/gnc-tokenizer-fw.cpp
346346
gnucash/import-export/customer-import/dialog-customer-import.c
347347
gnucash/import-export/customer-import/dialog-customer-import-gui.c
348348
gnucash/import-export/customer-import/gnc-plugin-customer-import.c
349-
gnucash/import-export/import-account-matcher.c
349+
gnucash/import-export/import-account-matcher.cpp
350350
gnucash/import-export/import-backend.cpp
351351
gnucash/import-export/import-commodity-matcher.cpp
352352
gnucash/import-export/import-format-dialog.c

0 commit comments

Comments
 (0)