summaryrefslogtreecommitdiff
path: root/extras
diff options
context:
space:
mode:
authorThorsten Behrens <thorsten.behrens@allotropia.de>2023-12-22 15:22:19 +0100
committerThorsten Behrens <thorsten.behrens@allotropia.de>2023-12-23 09:52:54 +0100
commit14c4c077182f0338a21ae7dedf862ffff0e339d2 (patch)
treef07711174fca33d7fba92449413708ea1fc3564b /extras
parent0ecedeea71d926f0aa3b2f121e6e896311e6250e (diff)
ZXing: no need for deprecated utf-8 conversions anymore
With ZXing 2.0, the library directly supports utf8 std::string parameters: https://github.com/zxing-cpp/zxing-cpp/releases/tag/v2.0.0 Fixes the warning: cui/source/dialogs/QrCodeGenDialog.cxx:161:72: warning: 'FromUtf8' is deprecated [-Wdeprecated-declarations] 161 | ZXing::BitMatrix bitmatrix = writer.encode(ZXing::TextUtfEncoding::FromUtf8(QRText), 0, 0); | ^ /usr/include/ZXing/TextUtfEncoding.h:17:3: note: 'FromUtf8' has been explicitly marked deprecated here 17 | [[deprecated]] std::wstring FromUtf8(std::string_view utf8); | ^ Change-Id: Ic0a65d4455dabea1a7a4e23f558e4158a0c3f39f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161182 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Diffstat (limited to 'extras')
0 files changed, 0 insertions, 0 deletions