Index: core/fpdfapi/page/cpdf_textobject.h |
diff --git a/core/fpdfapi/page/cpdf_textobject.h b/core/fpdfapi/page/cpdf_textobject.h |
index 23da997aebf829a5f793a3639c6febef64f2bae2..b520e3ee928525041edfa9634684e26e75be62b1 100644 |
--- a/core/fpdfapi/page/cpdf_textobject.h |
+++ b/core/fpdfapi/page/cpdf_textobject.h |
@@ -7,6 +7,8 @@ |
#ifndef CORE_FPDFAPI_PAGE_CPDF_TEXTOBJECT_H_ |
#define CORE_FPDFAPI_PAGE_CPDF_TEXTOBJECT_H_ |
+#include <memory> |
+ |
#include "core/fpdfapi/page/cpdf_pageobject.h" |
#include "core/fxcrt/fx_string.h" |
#include "core/fxcrt/fx_system.h" |
@@ -23,13 +25,13 @@ class CPDF_TextObject : public CPDF_PageObject { |
~CPDF_TextObject() override; |
// CPDF_PageObject |
- CPDF_TextObject* Clone() const override; |
Type GetType() const override; |
void Transform(const CFX_Matrix& matrix) override; |
bool IsText() const override; |
CPDF_TextObject* AsText() override; |
const CPDF_TextObject* AsText() const override; |
+ std::unique_ptr<CPDF_TextObject> Clone() const; |
int CountItems() const; |
void GetItemInfo(int index, CPDF_TextObjectItem* pInfo) const; |
int CountChars() const; |