diff options
author | Eike Rathke <erack@redhat.com> | 2020-03-01 16:57:15 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2020-03-01 19:54:20 +0100 |
commit | 0f1433cdaa66e3137061d45443e887dad6135752 (patch) | |
tree | abec3529c123acb332e1eb933a8a31e6fb90d940 /cui | |
parent | 5f2cf0cc76316d27c0841fda027b350b83032531 (diff) |
Catch by reference
error: catching polymorphic type ‘class qrcodegen::data_too_long’ by value [-Werror=catch-value=]
Change-Id: I34cd429186b737f32ceec124849d48860788a9d6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89778
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/QrCodeGenDialog.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/dialogs/QrCodeGenDialog.cxx b/cui/source/dialogs/QrCodeGenDialog.cxx index 3be6aafe0931..cec3b82a3567 100644 --- a/cui/source/dialogs/QrCodeGenDialog.cxx +++ b/cui/source/dialogs/QrCodeGenDialog.cxx @@ -115,7 +115,7 @@ short QrCodeGenDialog::run() Apply(); break; } - catch (qrcodegen::data_too_long) + catch (const qrcodegen::data_too_long&) { std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog( mpParent, VclMessageType::Warning, VclButtonsType::Ok, |