diff --git a/gnucash/import-export/CMakeLists.txt b/gnucash/import-export/CMakeLists.txt index dde22d4969..7ff2a3250a 100644 --- a/gnucash/import-export/CMakeLists.txt +++ b/gnucash/import-export/CMakeLists.txt @@ -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 diff --git a/gnucash/import-export/import-pending-matches.c b/gnucash/import-export/import-pending-matches.cpp similarity index 97% rename from gnucash/import-export/import-pending-matches.c rename to gnucash/import-export/import-pending-matches.cpp index 76dac1a074..4c20146640 100644 --- a/gnucash/import-export/import-pending-matches.c +++ b/gnucash/import-export/import-pending-matches.cpp @@ -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(g_hash_table_lookup (map, match_guid)); } void diff --git a/po/POTFILES.in b/po/POTFILES.in index 7397a8028e..d547c29b0e 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -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