diff options
Diffstat (limited to 'formula/source/core/api/vectortoken.cxx')
-rw-r--r-- | formula/source/core/api/vectortoken.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/formula/source/core/api/vectortoken.cxx b/formula/source/core/api/vectortoken.cxx index b4bc14370a7d..c1bd52157795 100644 --- a/formula/source/core/api/vectortoken.cxx +++ b/formula/source/core/api/vectortoken.cxx @@ -64,10 +64,10 @@ size_t SingleVectorRefToken::GetArrayLength() const } DoubleVectorRefToken::DoubleVectorRefToken( - const std::vector<VectorRefArray>& rArrays, size_t nArrayLength, + std::vector<VectorRefArray>&& rArrays, size_t nArrayLength, size_t nRefRowSize, bool bStartFixed, bool bEndFixed ) : FormulaToken(svDoubleVectorRef, ocPush), - maArrays(rArrays), mnArrayLength(nArrayLength), + maArrays(std::move(rArrays)), mnArrayLength(nArrayLength), mnRefRowSize(nRefRowSize), mbStartFixed(bStartFixed), mbEndFixed(bEndFixed) { SAL_INFO("formula.core", "Created DoubleVectorRefToken nArrayLength=" << nArrayLength); @@ -76,7 +76,7 @@ DoubleVectorRefToken::DoubleVectorRefToken( FormulaToken* DoubleVectorRefToken::Clone() const { return new DoubleVectorRefToken( - maArrays, mnArrayLength, mnRefRowSize, mbStartFixed, mbEndFixed); + std::vector(maArrays), mnArrayLength, mnRefRowSize, mbStartFixed, mbEndFixed); } const std::vector<VectorRefArray>& DoubleVectorRefToken::GetArrays() const |