diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-09-04 09:02:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-04 14:03:19 +0200 |
commit | 45b17d9d5bf98aefba392da6271c7077c1363238 (patch) | |
tree | 6c8825ac3b8fb8147d9e488eb64aacd5bd7e0e42 /include/formula | |
parent | 10d86d8526126956758501604f1bd2e3fe102076 (diff) |
store ScTokenArray by value in SharedFormulaBuffer
Change-Id: Ibff3c2fea3cadc234266953ab15ae5f25c4ac1e1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121626
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/formula')
-rw-r--r-- | include/formula/tokenarray.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/formula/tokenarray.hxx b/include/formula/tokenarray.hxx index 87377cb228e0..6b373ff44e15 100644 --- a/include/formula/tokenarray.hxx +++ b/include/formula/tokenarray.hxx @@ -248,6 +248,7 @@ protected: protected: void Assign( const FormulaTokenArray& ); void Assign( sal_uInt16 nCode, FormulaToken **pTokens ); + void Move( FormulaTokenArray&& ); /// Also used by the compiler. The token MUST had been allocated with new! FormulaToken* Add( FormulaToken* ); @@ -289,6 +290,7 @@ public: /** Assignment with incrementing references of FormulaToken entries (not copied!) */ FormulaTokenArray( const FormulaTokenArray& ); + FormulaTokenArray( FormulaTokenArray&& ); virtual ~FormulaTokenArray(); virtual void Clear(); @@ -485,6 +487,7 @@ public: /** Assignment with incrementing references of FormulaToken entries (not copied!) */ FormulaTokenArray& operator=( const FormulaTokenArray& ); + FormulaTokenArray& operator=( FormulaTokenArray&& ); /** Determines if this formula needs any changes to convert it to something previous versions of OOo could consume (Plain Old Formula, pre-ODFF, or |