[import-pending-matches.cpp] convert to cpp

This commit is contained in:
Christopher Lam 2023-07-13 21:54:36 +08:00
parent 243710218c
commit b0e5316b91
3 changed files with 3 additions and 6 deletions

View File

@ -23,7 +23,7 @@ set (generic_import_SOURCES
import-utilities.c
import-settings.c
import-main-matcher.cpp
import-pending-matches.c
import-pending-matches.cpp
)
# Add dependency on config.h

View File

@ -75,7 +75,6 @@ static GNCPendingMatches *
gnc_import_PendingMatches_get_value (GNCImportPendingMatches *map,
GNCImportMatchInfo *match_info)
{
GNCPendingMatches *pending_matches;
const GncGUID *match_guid;
g_return_val_if_fail (map, NULL);
@ -83,9 +82,7 @@ gnc_import_PendingMatches_get_value (GNCImportPendingMatches *map,
match_guid = gnc_import_PendingMatches_get_key (match_info);
pending_matches = g_hash_table_lookup (map, match_guid);
return pending_matches;
return static_cast<GNCPendingMatches*>(g_hash_table_lookup (map, match_guid));
}
void

View File

@ -353,7 +353,7 @@ gnucash/import-export/import-format-dialog.c
gnucash/import-export/import-main-matcher.cpp
gnucash/import-export/import-match-picker.cpp
gnucash/import-export/import-parse.c
gnucash/import-export/import-pending-matches.c
gnucash/import-export/import-pending-matches.cpp
gnucash/import-export/import-settings.c
gnucash/import-export/import-utilities.c
gnucash/import-export/log-replay/gnc-log-replay.c