From cdb920e9f7be2c5f3f48f978e93cd255794fcb1c Mon Sep 17 00:00:00 2001 From: DuckSoft Date: Tue, 28 Apr 2020 08:03:00 +0800 Subject: [PATCH] [cleanup] slow catchs --- src/ui/widgets/RouteSettingsMatrix.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/widgets/RouteSettingsMatrix.cpp b/src/ui/widgets/RouteSettingsMatrix.cpp index 1a6ff3d7..6742bea3 100644 --- a/src/ui/widgets/RouteSettingsMatrix.cpp +++ b/src/ui/widgets/RouteSettingsMatrix.cpp @@ -121,7 +121,7 @@ void RouteSettingsMatrixWidget::on_importSchemeBtn_clicked() // done LOG(MODULE_SETTINGS, "Imported route config: " + scheme.name + " by: " + scheme.author) } - catch (exception e) + catch (exception &e) { LOG(MODULE_UI, "Exception: " + QString(e.what())) // TODO: Give some error as Notification @@ -181,7 +181,7 @@ void RouteSettingsMatrixWidget::on_exportSchemeBtn_clicked() // TODO: Give some success as Notification QvMessageBoxInfo(this, dialogTitle, tr("Your route scheme has been successfully exported!")); } - catch (exception) + catch (exception &) { // TODO: Give some error as Notification