Adjust catch syntax to avoid GCC8 warnings.

This commit is contained in:
Bill Nottingham
2018-04-03 22:02:44 -04:00
parent 6c6194001a
commit 434dd9520c
10 changed files with 29 additions and 29 deletions

View File

@@ -5442,7 +5442,7 @@ gnc_account_imap_find_account_bayes (GncImportMatchMap *imap, GList *tokens)
gnc::GUID guid;
try {
guid = gnc::GUID::from_string(best.account_guid);
} catch (gnc::guid_syntax_exception) {
} catch (gnc::guid_syntax_exception&) {
return nullptr;
}
auto account = xaccAccountLookup (reinterpret_cast<GncGUID*>(&guid), imap->book);