From: Brett T. Warden Date: Fri, 2 Dec 2022 20:06:35 +0000 (-0800) Subject: [PATCH] Remove dependency on BitArray.h from zxing-1.2.0 X-Git-Tag: archive/raspbian/4%7.4.5-1+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4a55f1f77eed9d8e214ebd130c0a6dd8d328c9c1;p=libreoffice.git [PATCH] Remove dependency on BitArray.h from zxing-1.2.0 In zxing-1.4.0, numerous headers are no longer public. Rework the ConvertToSVGFormat method so it uses bitmatrix.get instead of bitmatrix.getRow, similar to the ToSVG method in zxing itself. See https://github.com/zxing-cpp/zxing-cpp/issues/361 Gbp-Pq: Name 0004-Remove-dependency-on-BitArray.h-from-zxing-1.2.0.patch --- diff --git a/cui/source/dialogs/QrCodeGenDialog.cxx b/cui/source/dialogs/QrCodeGenDialog.cxx index e028d4d10e9..6d5a87aaf55 100644 --- a/cui/source/dialogs/QrCodeGenDialog.cxx +++ b/cui/source/dialogs/QrCodeGenDialog.cxx @@ -27,7 +27,6 @@ #endif #include -#include #include #include #include @@ -79,7 +78,6 @@ OString ConvertToSVGFormat(const ZXing::BitMatrix& bitmatrix) OStringBuffer sb; const int width = bitmatrix.width(); const int height = bitmatrix.height(); - ZXing::BitArray row(width); sb.append("\n" "