diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-11 16:36:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-12 08:54:15 +0200 |
commit | fa394eef4017d62549599ded3a62d790bc508582 (patch) | |
tree | dc23efda2c3e260af82487c1e3046451277efa6c /svx/source | |
parent | a267efe358cb788e0256feada268987ddbf9604f (diff) |
clang-tidy misc-throw-by-value-catch-by-reference
Change-Id: I04750771b63551fd3df522753a4ed21b8d5c42f3
Reviewed-on: https://gerrit.libreoffice.org/61680
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/dialog/SafeModeDialog.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/dialog/SafeModeDialog.cxx b/svx/source/dialog/SafeModeDialog.cxx index d802258d3788..e32128570db4 100644 --- a/svx/source/dialog/SafeModeDialog.cxx +++ b/svx/source/dialog/SafeModeDialog.cxx @@ -356,7 +356,7 @@ namespace { css::system::SystemShellExecute::create(comphelper::getProcessComponentContext())); try { exec->execute(uri, OUString(), css::system::SystemShellExecuteFlags::URIS_ONLY); - } catch (css::uno::Exception) { + } catch (const css::uno::Exception &) { } m_xDialog->response(RET_OK); } @@ -373,7 +373,7 @@ IMPL_LINK(SafeModeDialog, CreateZipBtnHdl, Button*, /*pBtn*/, void) aZipHelper.addFolderWithContent(aZipHelper.getRootFolder(), comphelper::BackupFileHelper::getUserProfileWorkURL()); aZipHelper.savePackage(); } - catch (uno::Exception) + catch (const uno::Exception &) { std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(GetFrameWeld(), VclMessageType::Warning, VclButtonsType::Ok, |