diff options
author | dsinclair <dsinclair@chromium.org> | 2016-04-19 10:39:24 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-19 10:39:24 -0700 |
commit | a28ae388f3859c52630deb6ef3d0ea468e5177e3 (patch) | |
tree | 1ab55ded754a5d1fc6ab5702e9d2244e5830ed68 /fpdfsdk/fpdf_searchex.cpp | |
parent | 11178284eccf22306338cf0d252b8dbb946feb16 (diff) | |
download | pdfium-a28ae388f3859c52630deb6ef3d0ea468e5177e3.tar.xz |
Remove IPDF_TextPage, IPDF_TextPageFind and IPDF_LinkExtract interfaces.
Each was only used by one subclass. Removed and used the concrete classes.
BUG=pdfium:468
Review URL: https://codereview.chromium.org/1897993002
Diffstat (limited to 'fpdfsdk/fpdf_searchex.cpp')
-rw-r--r-- | fpdfsdk/fpdf_searchex.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fpdfsdk/fpdf_searchex.cpp b/fpdfsdk/fpdf_searchex.cpp index ab2baf529c..9c987f2691 100644 --- a/fpdfsdk/fpdf_searchex.cpp +++ b/fpdfsdk/fpdf_searchex.cpp @@ -6,11 +6,12 @@ #include "public/fpdf_searchex.h" -#include "core/fpdftext/include/ipdf_textpage.h" +#include "core/fpdftext/include/cpdf_textpage.h" DLLEXPORT int STDCALL FPDFText_GetCharIndexFromTextIndex(FPDF_TEXTPAGE text_page, int nTextIndex) { if (!text_page) return -1; - return ((IPDF_TextPage*)text_page)->CharIndexFromTextIndex(nTextIndex); + return static_cast<CPDF_TextPage*>(text_page) + ->CharIndexFromTextIndex(nTextIndex); } |