diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2014-05-19 20:23:07 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2014-05-21 10:03:36 +0100 |
commit | c07b8dedf7b1d0ddb2c97368e1634432974632db (patch) | |
tree | 52b64755d9ff981373d6406652652dce583e9178 /include | |
parent | 7732f806dfcc9375757e7ccbe1ca3c1d194af266 (diff) |
ODS load perf: transfer ownership of the ScTokenArray to save cycles.
Add API to wnsure we don't end up allocating 32k bytes of tokens
for each ScFormulaToken, as happens when you Add a token to a new
empty ScTokenArray.
Change-Id: Ib12a3065eb513243a2146ebb009fbaa650385dd9
Diffstat (limited to 'include')
-rw-r--r-- | include/formula/tokenarray.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/formula/tokenarray.hxx b/include/formula/tokenarray.hxx index 5654a3150f82..dcc8dc9200ef 100644 --- a/include/formula/tokenarray.hxx +++ b/include/formula/tokenarray.hxx @@ -82,6 +82,7 @@ protected: protected: void Assign( const FormulaTokenArray& ); + void Assign( sal_uInt16 nCode, FormulaToken **pTokens ); /// Also used by the compiler. The token MUST had been allocated with new! FormulaToken* Add( FormulaToken* ); |