cui/source/dialogs/QrCodeGenDialog.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0f1433cdaa66e3137061d45443e887dad6135752
Author:     Eike Rathke <er...@redhat.com>
AuthorDate: Sun Mar 1 16:57:15 2020 +0100
Commit:     Eike Rathke <er...@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 <er...@redhat.com>
    Tested-by: Eike Rathke <er...@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,
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to