summaryrefslogtreecommitdiff
path: root/core/src/fpdfapi/fpdf_edit
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-10-16 16:21:58 -0700
committerLei Zhang <thestig@chromium.org>2015-10-16 16:21:58 -0700
commit316e482630d5f5d9084edd9725f98a0d89a5bbdf (patch)
treed0da57af48d88a18e0cd7dca9093057316da4078 /core/src/fpdfapi/fpdf_edit
parent3d7d1d2f29e5fb099367a40822684d31f684fd62 (diff)
downloadpdfium-316e482630d5f5d9084edd9725f98a0d89a5bbdf.tar.xz
Don't bother passing -1 as the length to the CFX_ByteString ctor.
R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1406363002 .
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 dc79de687d..9c1c292fb7 100644
--- a/core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp
+++ b/core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp
@@ -1108,7 +1108,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);