| Index: fpdfsdk/fpdf_searchex.cpp
|
| diff --git a/fpdfsdk/fpdf_searchex.cpp b/fpdfsdk/fpdf_searchex.cpp
|
| index ab2baf529c27d08bbe82512129c307b598472104..9c987f2691a0d51e7ae5ae007a77d3b63be991f1 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);
|
| }
|
|
|