diff options
Diffstat (limited to 'xfa/fxfa/parser/cxfa_valuearray.cpp')
-rw-r--r-- | xfa/fxfa/parser/cxfa_valuearray.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xfa/fxfa/parser/cxfa_valuearray.cpp b/xfa/fxfa/parser/cxfa_valuearray.cpp index 04afc40b0e..1170010139 100644 --- a/xfa/fxfa/parser/cxfa_valuearray.cpp +++ b/xfa/fxfa/parser/cxfa_valuearray.cpp @@ -16,7 +16,10 @@ CXFA_ValueArray::~CXFA_ValueArray() { delete GetAt(i); } -void CXFA_ValueArray::GetAttributeObject(CXFA_ObjArray& objArray) { +std::vector<CXFA_Object*> CXFA_ValueArray::GetAttributeObject() { + std::vector<CXFA_Object*> objArray; for (int32_t i = 0; i < GetSize(); i++) - objArray.Add(CXFA_ScriptContext::ToObject(GetAt(i), nullptr)); + objArray.push_back(CXFA_ScriptContext::ToObject(GetAt(i), nullptr)); + + return objArray; } |