summaryrefslogtreecommitdiff
path: root/fxbarcode/cbc_qrcode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxbarcode/cbc_qrcode.cpp')
-rw-r--r--fxbarcode/cbc_qrcode.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/fxbarcode/cbc_qrcode.cpp b/fxbarcode/cbc_qrcode.cpp
index 297ce77212..0f3a65ef3a 100644
--- a/fxbarcode/cbc_qrcode.cpp
+++ b/fxbarcode/cbc_qrcode.cpp
@@ -37,13 +37,13 @@ bool CBC_QRCode::SetErrorCorrectionLevel(int32_t level) {
return GetQRCodeWriter()->SetErrorCorrectionLevel(level);
}
-bool CBC_QRCode::Encode(const CFX_WideStringC& contents) {
+bool CBC_QRCode::Encode(const WideStringView& contents) {
int32_t outWidth = 0;
int32_t outHeight = 0;
CBC_QRCodeWriter* pWriter = GetQRCodeWriter();
std::unique_ptr<uint8_t, FxFreeDeleter> data(
- pWriter->Encode(CFX_WideString(contents),
- pWriter->GetErrorCorrectionLevel(), outWidth, outHeight));
+ pWriter->Encode(WideString(contents), pWriter->GetErrorCorrectionLevel(),
+ outWidth, outHeight));
if (!data)
return false;
return pWriter->RenderResult(data.get(), outWidth, outHeight);