summaryrefslogtreecommitdiff
path: root/xfa/fxbarcode/datamatrix/BC_EdifactEncoder.cpp
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-05-20 16:09:37 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-20 16:09:37 -0700
commit76852be59cbfdb22901b37bb8579d19c07af7037 (patch)
tree6c6c7798f62f089bc7d4720954ad2d07469582a5 /xfa/fxbarcode/datamatrix/BC_EdifactEncoder.cpp
parent038aa531bcf1a76764d3cef46fd9b8e08b166dae (diff)
downloadpdfium-76852be59cbfdb22901b37bb8579d19c07af7037.tar.xz
Fix /analyze warnings in fxbarcode/
Part of the fix to the issues in bug 613623. These are all real bugs arising from non-use of L""-style literals band-aided over with casts. Remove the casts, and fix the literals or replace with empty string constructors. BUG=613623, 427616 Review-Url: https://codereview.chromium.org/1999933002
Diffstat (limited to 'xfa/fxbarcode/datamatrix/BC_EdifactEncoder.cpp')
-rw-r--r--xfa/fxbarcode/datamatrix/BC_EdifactEncoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fxbarcode/datamatrix/BC_EdifactEncoder.cpp b/xfa/fxbarcode/datamatrix/BC_EdifactEncoder.cpp
index d1f5b9796d..e1d493a1ca 100644
--- a/xfa/fxbarcode/datamatrix/BC_EdifactEncoder.cpp
+++ b/xfa/fxbarcode/datamatrix/BC_EdifactEncoder.cpp
@@ -132,7 +132,7 @@ CFX_WideString CBC_EdifactEncoder::encodeToCodewords(CFX_WideString sb,
int32_t len = sb.GetLength() - startPos;
if (len == 0) {
e = BCExceptionNoContents;
- return (FX_WCHAR*)"";
+ return CFX_WideString();
}
FX_WCHAR c1 = sb.GetAt(startPos);
FX_WCHAR c2 = len >= 2 ? sb.GetAt(startPos + 1) : 0;