Index: xfa/fxbarcode/cbc_pdf417i.cpp |
diff --git a/xfa/fxbarcode/cbc_pdf417i.cpp b/xfa/fxbarcode/cbc_pdf417i.cpp |
index 0b7a558327a27d62d7920dd9c1781a4c9de22c19..228caed47f8a0f53c09f74b7ff73c440df31c55c 100644 |
--- a/xfa/fxbarcode/cbc_pdf417i.cpp |
+++ b/xfa/fxbarcode/cbc_pdf417i.cpp |
@@ -51,8 +51,9 @@ FX_BOOL CBC_PDF417I::Encode(const CFX_WideStringC& contents, |
int32_t& e) { |
int32_t outWidth = 0; |
int32_t outHeight = 0; |
- uint8_t* data = ((CBC_PDF417Writer*)m_pBCWriter) |
- ->Encode(contents, outWidth, outHeight, e); |
+ uint8_t* data = |
+ ((CBC_PDF417Writer*)m_pBCWriter) |
+ ->Encode(CFX_WideString(contents), outWidth, outHeight, e); |
BC_EXCEPTION_CHECK_ReturnValue(e, FALSE); |
((CBC_TwoDimWriter*)m_pBCWriter)->RenderResult(data, outWidth, outHeight, e); |
FX_Free(data); |
@@ -86,6 +87,6 @@ CFX_WideString CBC_PDF417I::Decode(CFX_DIBitmap* pBitmap, int32_t& e) { |
CBC_GlobalHistogramBinarizer binarizer(&source); |
CBC_BinaryBitmap bitmap(&binarizer); |
CFX_ByteString bytestring = m_pBCReader->Decode(&bitmap, 0, e); |
- BC_EXCEPTION_CHECK_ReturnValue(e, FX_WSTRC(L"")); |
+ BC_EXCEPTION_CHECK_ReturnValue(e, CFX_WideString()); |
return CFX_WideString::FromUTF8(bytestring.AsStringC()); |
} |