Skip to content

Commit 09b6cda

Browse files
committed
Fix error no template named 'raw_ptr'
../fpdfsdk/fpdf_editpage.cpp:171:3: error: no template named 'raw_ptr' 171 | raw_ptr<CPDF_PageObject> page_obj; | ^ As far as I understand, `raw_ptr` is only defined when using partition allocator, which we disabled (#28, #124, #137, #148)
1 parent 67240ff commit 09b6cda

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

patches/hotfixes.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/fpdfsdk/fpdf_editpage.cpp b/fpdfsdk/fpdf_editpage.cpp
2+
index 76e3e26..f1b7be9 100644
3+
--- a/fpdfsdk/fpdf_editpage.cpp
4+
+++ b/fpdfsdk/fpdf_editpage.cpp
5+
@@ -168,7 +168,7 @@ RetainPtr<const CPDF_Object> GetParamObject(void* out_value,
6+
7+
struct ParamsAndObject {
8+
RetainPtr<CPDF_Dictionary> params;
9+
- raw_ptr<CPDF_PageObject> page_obj;
10+
+ CPDF_PageObject* page_obj;
11+
};
12+
13+
ParamsAndObject SetParamValueHelper(FPDF_DOCUMENT document,

steps/03-patch.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ pushd "${SOURCE}"
1717

1818
[ "$OS" != "emscripten" ] && apply_patch "$PATCHES/shared_library.patch"
1919
apply_patch "$PATCHES/public_headers.patch"
20+
apply_patch "$PATCHES/hotfixes.patch"
2021

2122
[ "$ENABLE_V8" == "true" ] && apply_patch "$PATCHES/v8/pdfium.patch"
2223

0 commit comments

Comments
 (0)