mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 15:53:52 +02:00
Simplify GuardedCall and default its return type to void
This commit is contained in:
@@ -494,7 +494,7 @@ FFmpegPresets::FFmpegPresets()
|
||||
FFmpegPresets::~FFmpegPresets()
|
||||
{
|
||||
// We're in a destructor! Don't let exceptions out!
|
||||
GuardedCall< void >( [&] {
|
||||
GuardedCall( [&] {
|
||||
wxFileName xmlFileName{ FileNames::DataDir(), wxT("ffmpeg_presets.xml") };
|
||||
XMLFileWriter writer{
|
||||
xmlFileName.GetFullPath(), _("Error Saving FFmpeg Presets") };
|
||||
@@ -520,7 +520,7 @@ void FFmpegPresets::ImportPresets(wxString &filename)
|
||||
|
||||
void FFmpegPresets::ExportPresets(wxString &filename)
|
||||
{
|
||||
GuardedCall< void >( [&] {
|
||||
GuardedCall( [&] {
|
||||
XMLFileWriter writer{ filename, _("Error Saving FFmpeg Presets") };
|
||||
WriteXMLHeader(writer);
|
||||
WriteXML(writer);
|
||||
|
||||
@@ -585,7 +585,7 @@ void ExportMultiple::OnExport(wxCommandEvent& WXUNUSED(event))
|
||||
FileList += '\n';
|
||||
}
|
||||
|
||||
GuardedCall<void>( [&] {
|
||||
GuardedCall( [&] {
|
||||
// This results dialog is a child of this dialog.
|
||||
HelpSystem::ShowInfoDialog( this,
|
||||
_("Export Multiple"),
|
||||
|
||||
Reference in New Issue
Block a user