diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-04-29 15:28:30 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-04-30 13:10:42 -0400 |
commit | ee289aaf451ddec8f3b997aae5cf9f95750ee277 (patch) | |
tree | 8b25fbc7a97850a75e3214441e4fca10b9769ed5 /formula | |
parent | d9f9c9ddfb49d297526d931925374163caa2f43d (diff) |
Let's not forget to check this in...
Curse the sc / formula split...
Change-Id: Ib8d17ba63d05eb4df7e6918e0034d91dd82869e3
Diffstat (limited to 'formula')
-rw-r--r-- | formula/source/core/api/vectortoken.cxx | 10 |
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; |