summaryrefslogtreecommitdiff
path: root/vcl/source/graphic/VectorGraphicSearch.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2021-02-02 21:09:53 +0100
committerMiklos Vajna <vmiklos@collabora.com>2021-02-03 09:26:54 +0100
commit76f878e299796db2bf3f31b2519a87e6ca232609 (patch)
tree3144f737012e5586e0f960c0f37c3e6b53466727 /vcl/source/graphic/VectorGraphicSearch.cxx
parent14d064cee7b76e8a2a2201d4da423336f68fe624 (diff)
pdfium: add a FPDFText_FindStart() wrapper
Change-Id: I0bf77c116ab83ea557467da7f0c780d92db6a60e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110333 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'vcl/source/graphic/VectorGraphicSearch.cxx')
-rw-r--r--vcl/source/graphic/VectorGraphicSearch.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/vcl/source/graphic/VectorGraphicSearch.cxx b/vcl/source/graphic/VectorGraphicSearch.cxx
index 3ac33db37cc3..01b76fb28b06 100644
--- a/vcl/source/graphic/VectorGraphicSearch.cxx
+++ b/vcl/source/graphic/VectorGraphicSearch.cxx
@@ -95,8 +95,6 @@ public:
if (!mpTextPage)
return false;
- FPDF_WIDESTRING pString = reinterpret_cast<FPDF_WIDESTRING>(maSearchString.getStr());
-
// Index where to start to search. -1 => at the end
int nStartIndex = maOptions.meStartPosition == SearchStartPosition::End ? -1 : 0;
@@ -113,8 +111,7 @@ public:
if (maOptions.mbMatchWholeWord)
nSearchFlags |= FPDF_MATCHWHOLEWORD;
- mpSearchHandle = std::make_unique<vcl::pdf::PDFiumSearchHandle>(
- FPDFText_FindStart(mpTextPage->getPointer(), pString, nSearchFlags, nStartIndex));
+ mpSearchHandle = mpTextPage->findStart(maSearchString, nSearchFlags, nStartIndex);
return mpSearchHandle != nullptr;
}