Fix build with chrome plugin enabled but Partition Alloc disabled,
Need to annotate the T* pointer in span.h else the "use raw_ptr<>"
warning is triggered.
Change-Id: I067cf1dc92af838f0fd2e3273ccf6a6a4b84e8f6
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/116770
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Thomas Sepez <tsepez@google.com>
diff --git a/core/fxcrt/span.h b/core/fxcrt/span.h
index ab21ad6..9cd2465 100644
--- a/core/fxcrt/span.h
+++ b/core/fxcrt/span.h
@@ -19,6 +19,8 @@
#if defined(PDF_USE_PARTITION_ALLOC)
#include "partition_alloc/pointers/raw_ptr.h"
+#else
+#include "core/fxcrt/unowned_ptr_exclusion.h"
#endif
namespace pdfium {
@@ -311,7 +313,7 @@
#if defined(PDF_USE_PARTITION_ALLOC)
raw_ptr<T, AllowPtrArithmetic> data_ = nullptr;
#else
- T* data_ = nullptr;
+ UNOWNED_PTR_EXCLUSION T* data_ = nullptr;
#endif
size_t size_ = 0;
};