summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdftext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/fpdftext.cpp')
-rw-r--r--fpdfsdk/fpdftext.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/fpdfsdk/fpdftext.cpp b/fpdfsdk/fpdftext.cpp
index d9f7d572e9..9392981df1 100644
--- a/fpdfsdk/fpdftext.cpp
+++ b/fpdfsdk/fpdftext.cpp
@@ -263,10 +263,9 @@ FPDFText_FindStart(FPDF_TEXTPAGE text_page,
CPDF_TextPageFind* textpageFind =
new CPDF_TextPageFind(CPDFTextPageFromFPDFTextPage(text_page));
size_t len = WideString::WStringLength(findwhat);
- textpageFind->FindFirst(WideString::FromUTF16LE(findwhat, len), flags,
- start_index >= 0
- ? pdfium::Optional<size_t>(start_index)
- : pdfium::Optional<size_t>());
+ textpageFind->FindFirst(
+ WideString::FromUTF16LE(findwhat, len), flags,
+ start_index >= 0 ? Optional<size_t>(start_index) : Optional<size_t>());
return textpageFind;
}