From a59917f1f51082be2649ef948c8802d7009915ac Mon Sep 17 00:00:00 2001 From: D Date: Tue, 15 Aug 2023 03:24:09 -0500 Subject: [PATCH] fixed accidental search and replace errors in QrCode.cpp and QrCode.hpp --- src/3rdparty/qrcode/QrCode.cpp | 4 ++-- src/3rdparty/qrcode/QrCode.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/3rdparty/qrcode/QrCode.cpp b/src/3rdparty/qrcode/QrCode.cpp index d394a81..0a8b12f 100644 --- a/src/3rdparty/qrcode/QrCode.cpp +++ b/src/3rdparty/qrcode/QrCode.cpp @@ -166,7 +166,7 @@ bool QrCode::getModule(int x, int y) const { } -QString QrCode::toSvgString(int border) const { +std::string QrCode::toSvgString(int border) const { if (border < 0) throw std::domain_error("Border must be non-negative"); if (border > INT_MAX / 2 || border * 2 > INT_MAX - size) @@ -190,7 +190,7 @@ QString QrCode::toSvgString(int border) const { } sb << "\" fill=\"#000000\"/>\n"; sb << "\n"; - return QString::fromStdString(sb.str()); + return sb.str(); } diff --git a/src/3rdparty/qrcode/QrCode.hpp b/src/3rdparty/qrcode/QrCode.hpp index 9aec236..1904844 100644 --- a/src/3rdparty/qrcode/QrCode.hpp +++ b/src/3rdparty/qrcode/QrCode.hpp @@ -187,7 +187,7 @@ class QrCode final { * Returns a string of SVG code for an image depicting this QR Code, with the given number * of border modules. The string always uses Unix newlines (\n), regardless of the platform. */ - public: QString toSvgString(int border) const; + public: std::string toSvgString(int border) const;