Cleanup: Remove CFX_MapPtrToPtr from fpdfppo.cpp.
[pdfium.git] / fpdfsdk / src / fpdf_searchex.cpp
index d63f8ff..e012d30 100644 (file)
@@ -5,10 +5,14 @@
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #include "../../public/fpdf_searchex.h"
-#include "../include/fsdk_define.h"
 
-DLLEXPORT int STDCALL  FPDFText_GetCharIndexFromTextIndex(FPDF_TEXTPAGE text_page, int nTextIndex)
+#include "../../core/include/fpdftext/fpdf_text.h"
+
+DLLEXPORT int STDCALL FPDFText_GetCharIndexFromTextIndex(
+    FPDF_TEXTPAGE text_page,
+    int nTextIndex)
 {
-       if(!text_page) return -1;
-       return ((IPDF_TextPage*)text_page)->CharIndexFromTextIndex(nTextIndex);
+    if (!text_page)
+        return -1;
+    return ((IPDF_TextPage*)text_page)->CharIndexFromTextIndex(nTextIndex);
 }