summaryrefslogtreecommitdiff
path: root/formula
diff options
context:
space:
mode:
Diffstat (limited to 'formula')
-rw-r--r--formula/source/core/api/vectortoken.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/formula/source/core/api/vectortoken.cxx b/formula/source/core/api/vectortoken.cxx
index 0c2e45577198..94a071cd02d7 100644
--- a/formula/source/core/api/vectortoken.cxx
+++ b/formula/source/core/api/vectortoken.cxx
@@ -17,6 +17,11 @@ VectorArray::VectorArray( const double* pArray, size_t nLength ) :
SingleVectorRefToken::SingleVectorRefToken( const double* pArray, size_t nLength ) :
FormulaToken(svSingleVectorRef, ocPush), maArray(pArray, nLength) {}
+FormulaToken* SingleVectorRefToken::Clone() const
+{
+ return new SingleVectorRefToken(maArray.mpArray, maArray.mnLength);
+}
+
const VectorArray& SingleVectorRefToken::GetArray() const
{
return maArray;
@@ -27,6 +32,11 @@ DoubleVectorRefToken::DoubleVectorRefToken(
FormulaToken(svDoubleVectorRef, ocPush),
maArrays(rArrays), mnRowSize(nRowSize), mbAbsStart(bAbsStart), mbAbsEnd(bAbsEnd) {}
+FormulaToken* DoubleVectorRefToken::Clone() const
+{
+ return new DoubleVectorRefToken(maArrays, mnRowSize, mbAbsStart, mbAbsEnd);
+}
+
const std::vector<VectorArray>& DoubleVectorRefToken::GetArrays() const
{
return maArrays;