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 /sc/inc/tokenarray.hxx | |
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 'sc/inc/tokenarray.hxx')
-rw-r--r-- | sc/inc/tokenarray.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/inc/tokenarray.hxx b/sc/inc/tokenarray.hxx index 401ecb392239..0592521901b3 100644 --- a/sc/inc/tokenarray.hxx +++ b/sc/inc/tokenarray.hxx @@ -66,12 +66,14 @@ public: /** Assignment with incrementing references of FormulaToken entries (not copied!) */ ScTokenArray( const ScTokenArray& ) = default; + ScTokenArray( ScTokenArray&& ) = default; virtual ~ScTokenArray() override; bool EqualTokens( const ScTokenArray* pArr2 ) const; virtual void Clear() override; std::unique_ptr<ScTokenArray> Clone() const; /// True copy! + ScTokenArray CloneValue() const; /// True copy! void GenHash(); size_t GetHash() const { return mnHashValue;} @@ -130,6 +132,7 @@ public: /** Assignment with incrementing references of FormulaToken entries (not copied!) */ ScTokenArray& operator=( const ScTokenArray& ); + ScTokenArray& operator=( ScTokenArray&& ); /** * Make all absolute references external references pointing to the old document |