[Libreoffice-commits] core.git: cui/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Tue Aug 6 11:25:14 UTC 2019


 cui/source/dialogs/QrCodeGenDialog.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit bb4015fe845869ae6c70947ac0d52f0ce8043d1b
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Aug 6 11:28:21 2019 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Aug 6 13:24:24 2019 +0200

    ofz#16191 fix build failure
    
    Change-Id: Iaa4e14e102374951ba8ab99507367556ff5920fd
    Reviewed-on: https://gerrit.libreoffice.org/77017
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/cui/source/dialogs/QrCodeGenDialog.cxx b/cui/source/dialogs/QrCodeGenDialog.cxx
index ab94debfcf8a..539a5fbb3c28 100644
--- a/cui/source/dialogs/QrCodeGenDialog.cxx
+++ b/cui/source/dialogs/QrCodeGenDialog.cxx
@@ -40,6 +40,7 @@
 #include <com/sun/star/text/XTextDocument.hpp>
 #include <com/sun/star/text/XTextViewCursor.hpp>
 #include <com/sun/star/text/XTextViewCursorSupplier.hpp>
+#include <config_fuzzers.h>
 
 using namespace css;
 using namespace css::uno;
@@ -218,6 +219,9 @@ void QrCodeGenDialog::SelectErrorCorrection(weld::ToggleButton& rButton)
 
 OUString QrCodeGenDialog::GenerateQrCode(OUString aQrText, int aQrECC, int aQrBorder)
 {
+#if ENABLE_FUZZERS
+    return OUString();
+#else
     //Select ECC:: value from aQrECC
     qrcodegen::QrCode::Ecc bqrEcc = qrcodegen::QrCode::Ecc::LOW;
 
@@ -255,6 +259,7 @@ OUString QrCodeGenDialog::GenerateQrCode(OUString aQrText, int aQrECC, int aQrBo
     //cstring to OUString
     char* cstr = &svg[0];
     return OUString::createFromAscii(cstr);
+#endif
 }
 
 void QrCodeGenDialog::GetErrorCorrection(long ErrorCorrection)


More information about the Libreoffice-commits mailing list