Merge to XFA: Remove typdefs for pointer types in fx_system.h.
[pdfium.git] / xfa / src / fxbarcode / datamatrix / BC_ErrorCorrection.cpp
index e574742..89b9208 100644 (file)
@@ -106,14 +106,14 @@ CFX_WideString CBC_ErrorCorrection::encodeECC200(CFX_WideString codewords, CBC_S
 {\r
     if (codewords.GetLength() != symbolInfo->m_dataCapacity) {\r
         e = BCExceptionIllegalArgument;\r
-        return (FX_LPWSTR)"";\r
+        return (FX_WCHAR*)"";\r
     }\r
     CFX_WideString sb;\r
     sb += codewords;\r
     int32_t blockCount = symbolInfo->getInterleavedBlockCount();\r
     if (blockCount == 1) {\r
         CFX_WideString ecc = createECCBlock(codewords, symbolInfo->m_errorCodewords, e);\r
-        BC_EXCEPTION_CHECK_ReturnValue(e, (FX_LPWSTR)"");\r
+        BC_EXCEPTION_CHECK_ReturnValue(e, (FX_WCHAR*)"");\r
         sb += ecc;\r
     } else {\r
         CFX_Int32Array dataSizes;\r
@@ -136,7 +136,7 @@ CFX_WideString CBC_ErrorCorrection::encodeECC200(CFX_WideString codewords, CBC_S
                 temp += (FX_WCHAR)codewords.GetAt(d);\r
             }\r
             CFX_WideString ecc = createECCBlock(temp, errorSizes[block], e);\r
-            BC_EXCEPTION_CHECK_ReturnValue(e, (FX_LPWSTR)"");\r
+            BC_EXCEPTION_CHECK_ReturnValue(e, (FX_WCHAR*)"");\r
             int32_t pos = 0;\r
             for (int32_t l = block; l < errorSizes[block] * blockCount; l += blockCount) {\r
                 sb.SetAt(symbolInfo->m_dataCapacity + l, ecc.GetAt(pos++));\r
@@ -160,7 +160,7 @@ CFX_WideString CBC_ErrorCorrection::createECCBlock(CFX_WideString codewords, int
     }\r
     if (table < 0) {\r
         e = BCExceptionIllegalArgument;\r
-        return (FX_LPWSTR)"";\r
+        return (FX_WCHAR*)"";\r
     }\r
     FX_WORD* ecc = FX_Alloc(FX_WORD, numECWords);\r
     FXSYS_memset32(ecc, 0, numECWords * sizeof(FX_WORD));\r