Merge to XFA: Remove FX_BSTR and FX_WSTR typedefs.
[pdfium.git] / xfa / src / fxbarcode / oned / BC_OnedCodaBarWriter.cpp
index 0049a54..584f7bf 100644 (file)
@@ -103,7 +103,7 @@ FX_BOOL CBC_OnedCodaBarWriter::FindChar(FX_WCHAR ch, FX_BOOL isContent)
         return FALSE;\r
     }\r
 }\r
-FX_BOOL CBC_OnedCodaBarWriter::CheckContentValidity(FX_WSTR contents)\r
+FX_BOOL CBC_OnedCodaBarWriter::CheckContentValidity(const CFX_WideStringC& contents)\r
 {\r
     FX_WCHAR ch;\r
     int32_t index = 0;\r
@@ -117,7 +117,7 @@ FX_BOOL CBC_OnedCodaBarWriter::CheckContentValidity(FX_WSTR contents)
     }\r
     return TRUE;\r
 }\r
-CFX_WideString CBC_OnedCodaBarWriter::FilterContents(FX_WSTR contents)\r
+CFX_WideString CBC_OnedCodaBarWriter::FilterContents(const CFX_WideStringC& contents)\r
 {\r
     CFX_WideString filtercontents;\r
     FX_WCHAR ch;\r
@@ -210,13 +210,13 @@ uint8_t* CBC_OnedCodaBarWriter::Encode(const CFX_ByteString &contents, int32_t &
     outLength = position;\r
     return result;\r
 }\r
-CFX_WideString CBC_OnedCodaBarWriter::encodedContents(FX_WSTR contents)\r
+CFX_WideString CBC_OnedCodaBarWriter::encodedContents(const CFX_WideStringC& contents)\r
 {\r
     CFX_WideString strStart(m_chStart);\r
     CFX_WideString strEnd(m_chEnd);\r
     return strStart + contents + strEnd;\r
 }\r
-void CBC_OnedCodaBarWriter::RenderResult(FX_WSTR contents, uint8_t* code, int32_t codeLength, FX_BOOL isDevice, int32_t &e)\r
+void CBC_OnedCodaBarWriter::RenderResult(const CFX_WideStringC& contents, uint8_t* code, int32_t codeLength, FX_BOOL isDevice, int32_t &e)\r
 {\r
     CBC_OneDimWriter::RenderResult(encodedContents(contents), code, codeLength, isDevice, e);\r
 }\r