diff options
author | Lei Zhang <thestig@chromium.org> | 2015-10-16 14:35:18 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-10-16 14:35:18 -0700 |
commit | 3d7d1d2f29e5fb099367a40822684d31f684fd62 (patch) | |
tree | 7f3c0e754e7a582ab7986393dba0f95d1f7bf036 /core/src/fpdfapi/fpdf_edit | |
parent | 887795881ba3babdc1d2c310e3b68deb5ad9b53b (diff) | |
download | pdfium-3d7d1d2f29e5fb099367a40822684d31f684fd62.tar.xz |
Declare PDF_GetStandardFontName() in the header.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1410043003 .
Diffstat (limited to 'core/src/fpdfapi/fpdf_edit')
-rw-r--r-- | core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp b/core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp index a3281999fe..dc79de687d 100644 --- a/core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp +++ b/core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp @@ -1105,15 +1105,15 @@ CPDF_Dictionary* CPDF_Document::CreateNewPage(int iPage) { } return pDict; } -int _PDF_GetStandardFontName(CFX_ByteString& name); + CPDF_Font* CPDF_Document::AddStandardFont(const FX_CHAR* font, CPDF_FontEncoding* pEncoding) { CFX_ByteString name(font, -1); - if (_PDF_GetStandardFontName(name) < 0) { - return NULL; - } + if (PDF_GetStandardFontName(&name) < 0) + return nullptr; return GetPageData()->GetStandardFont(name, pEncoding); } + void CPDF_Document::DeletePage(int iPage) { CPDF_Dictionary* pRoot = GetRoot(); if (pRoot == NULL) { |