1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-09 05:01:57 +01:00

Simplify GuardedCall and default its return type to void

This commit is contained in:
Paul Licameli
2018-01-13 01:32:41 -05:00
parent 5407079c62
commit 8e0cffb7f2
11 changed files with 23 additions and 42 deletions

View File

@@ -502,7 +502,7 @@ bool ImportXMLTagHandler::HandleXMLTag(const wxChar *tag, const wxChar **attrs)
// Guard this call so that C++ exceptions don't propagate through
// the expat library
GuardedCall< void >(
GuardedCall(
[&] { mProject->Import(strAttr, &trackArray); },
[&] (AudacityException*) { trackArray.clear(); }
);