summaryrefslogtreecommitdiff
path: root/core/src/fpdfapi/fpdf_edit
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-10-16 16:29:59 -0700
committerLei Zhang <thestig@chromium.org>2015-10-16 16:29:59 -0700
commit0c6e6824979c9a3e7006a925f7b307db04342146 (patch)
tree12be3af6450fbb37cc5c12247eea888c9cf09d11 /core/src/fpdfapi/fpdf_edit
parentc40ccaff017691b7d31e0597863bfb954aebd739 (diff)
downloadpdfium-0c6e6824979c9a3e7006a925f7b307db04342146.tar.xz
Merge to XFA: Don't bother passing -1 as the length to the CFX_ByteString ctor.
TBR=tsepez@chromium.org Review URL: https://codereview.chromium.org/1406363002 . (cherry picked from commit 316e482630d5f5d9084edd9725f98a0d89a5bbdf) Review URL: https://codereview.chromium.org/1406303006 .
Diffstat (limited to 'core/src/fpdfapi/fpdf_edit')
-rw-r--r--core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp b/core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp
index 95eac538bb..72df84ed95 100644
--- a/core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp
+++ b/core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp
@@ -1109,7 +1109,7 @@ CPDF_Dictionary* CPDF_Document::CreateNewPage(int iPage) {
CPDF_Font* CPDF_Document::AddStandardFont(const FX_CHAR* font,
CPDF_FontEncoding* pEncoding) {
- CFX_ByteString name(font, -1);
+ CFX_ByteString name(font);
if (PDF_GetStandardFontName(&name) < 0)
return nullptr;
return GetPageData()->GetStandardFont(name, pEncoding);