diff options
author | Wei Li <weili@chromium.org> | 2016-02-16 14:26:22 -0800 |
---|---|---|
committer | Wei Li <weili@chromium.org> | 2016-02-16 14:26:22 -0800 |
commit | 970c11e2225d73234009ccdc6f656abd01ae4026 (patch) | |
tree | c184a4d3b62785ee5431cc2c6d7199103b78986f /fpdfsdk/src | |
parent | 4f7f4eea92b607ca3864df63e4b277abd5e5af97 (diff) | |
download | pdfium-970c11e2225d73234009ccdc6f656abd01ae4026.tar.xz |
Refactor CPDF_SimpleParser and add unit tests.
Remove unused member functions and simplify calls to find tag parameters.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1681403007 .
Diffstat (limited to 'fpdfsdk/src')
-rw-r--r-- | fpdfsdk/src/formfiller/FFL_CBA_Fontmap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/src/formfiller/FFL_CBA_Fontmap.cpp b/fpdfsdk/src/formfiller/FFL_CBA_Fontmap.cpp index 7f5fd9430d..96f727eee6 100644 --- a/fpdfsdk/src/formfiller/FFL_CBA_Fontmap.cpp +++ b/fpdfsdk/src/formfiller/FFL_CBA_Fontmap.cpp @@ -233,7 +233,7 @@ CPDF_Font* CBA_FontMap::GetAnnotDefaultFont(CFX_ByteString& sAlias) { if (!sDA.IsEmpty()) { CPDF_SimpleParser syntax(sDA); - syntax.FindTagParam("Tf", 2); + syntax.FindTagParamFromStart("Tf", 2); CFX_ByteString sFontName = syntax.GetWord(); sAlias = PDF_NameDecode(sFontName).Mid(1); |