summaryrefslogtreecommitdiff
path: root/fpdfsdk/fxedit
diff options
context:
space:
mode:
authorNicolas Pena <npm@chromium.org>2017-06-20 17:42:39 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-06-20 22:10:32 +0000
commit995a601c50874729ac40e2cc444b8894cf2aea96 (patch)
treef2429607324df0be7585c2099505444e0247ef1f /fpdfsdk/fxedit
parentdce2d72f9fbc166ee8eed0e362ab26e1e1a33cdd (diff)
downloadpdfium-995a601c50874729ac40e2cc444b8894cf2aea96.tar.xz
Cleanup fpdf_parser_decode
This CL fixes some nits in fpdf_parser_decode, especially avoiding non-const reference parameters. Change-Id: Ibb914850afd924bb398f886ac862f7589519ef7e Reviewed-on: https://pdfium-review.googlesource.com/6750 Commit-Queue: Nicolás Peña <npm@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/fxedit')
-rw-r--r--fpdfsdk/fxedit/fxet_edit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/fxedit/fxet_edit.cpp b/fpdfsdk/fxedit/fxet_edit.cpp
index 130a81d335..f11f631907 100644
--- a/fpdfsdk/fxedit/fxet_edit.cpp
+++ b/fpdfsdk/fxedit/fxet_edit.cpp
@@ -38,7 +38,7 @@ const int kEditUndoMaxItems = 10000;
CFX_ByteString GetWordRenderString(const CFX_ByteString& strWords) {
if (strWords.GetLength() > 0)
- return PDF_EncodeString(strWords) + " Tj\n";
+ return PDF_EncodeString(strWords, false) + " Tj\n";
return CFX_ByteString();
}