Index: fpdfsdk/pdfwindow/PWL_Edit.cpp |
diff --git a/fpdfsdk/pdfwindow/PWL_Edit.cpp b/fpdfsdk/pdfwindow/PWL_Edit.cpp |
index 153e9ab4b784c6bbe80ba335df1e63194cea010b..bb8ec9115dc68b3245fdac1cd2984afa5d238667 100644 |
--- a/fpdfsdk/pdfwindow/PWL_Edit.cpp |
+++ b/fpdfsdk/pdfwindow/PWL_Edit.cpp |
@@ -875,10 +875,9 @@ CPVT_WordRange CPWL_Edit::GetSameWordsRange(const CPVT_WordPlace& place, |
return range; |
} |
-void CPWL_Edit::GeneratePageObjects( |
- CPDF_PageObjectHolder* pObjectHolder, |
- const CFX_FloatPoint& ptOffset, |
- CFX_ArrayTemplate<CPDF_TextObject*>& ObjArray) { |
+void CPWL_Edit::GeneratePageObjects(CPDF_PageObjectHolder* pObjectHolder, |
+ const CFX_FloatPoint& ptOffset, |
+ std::vector<CPDF_TextObject*>* ObjArray) { |
CFX_Edit::GeneratePageObjects( |
pObjectHolder, m_pEdit.get(), ptOffset, nullptr, |
CPWL_Utils::PWLColorToFXColor(GetTextColor(), GetTransparency()), |
@@ -887,9 +886,9 @@ void CPWL_Edit::GeneratePageObjects( |
void CPWL_Edit::GeneratePageObjects(CPDF_PageObjectHolder* pObjectHolder, |
const CFX_FloatPoint& ptOffset) { |
- CFX_ArrayTemplate<CPDF_TextObject*> ObjArray; |
+ std::vector<CPDF_TextObject*> ObjArray; |
CFX_Edit::GeneratePageObjects( |
pObjectHolder, m_pEdit.get(), ptOffset, nullptr, |
CPWL_Utils::PWLColorToFXColor(GetTextColor(), GetTransparency()), |
- ObjArray); |
+ &ObjArray); |
} |