[Libreoffice-commits] core.git: cui/source
Eike Rathke (via logerrit)
logerrit at kemper.freedesktop.org
Sun Mar 1 18:54:54 UTC 2020
cui/source/dialogs/QrCodeGenDialog.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 0f1433cdaa66e3137061d45443e887dad6135752
Author: Eike Rathke <erack at redhat.com>
AuthorDate: Sun Mar 1 16:57:15 2020 +0100
Commit: Eike Rathke <erack at redhat.com>
CommitDate: Sun Mar 1 19:54:20 2020 +0100
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 at redhat.com>
Tested-by: Eike Rathke <erack at redhat.com>
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,
More information about the Libreoffice-commits
mailing list