diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-11-04 22:52:26 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-11-06 20:40:21 -0500 |
commit | 04532617c7d264411563db24dc359326cc18eda7 (patch) | |
tree | 694b89a01cedcbc069ae7ed9e6a3b246a968ebf5 /sc/inc/formulacell.hxx | |
parent | a09f7fddb4e847b35e6d47a45403c649152dd671 (diff) |
Avoid duplication of ScTokenArray during formula cell construction.
For slightly less overhead.
Change-Id: Ie5861d585d6e22fbd19dfd57edfebae4f4504839
Diffstat (limited to 'sc/inc/formulacell.hxx')
-rw-r--r-- | sc/inc/formulacell.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sc/inc/formulacell.hxx b/sc/inc/formulacell.hxx index 46a68c448eb1..c2e578b902ff 100644 --- a/sc/inc/formulacell.hxx +++ b/sc/inc/formulacell.hxx @@ -153,6 +153,15 @@ public: ScFormulaCell( ScDocument* pDoc, const ScAddress& rPos ); + /** + * Transfer the ownership of the passed token array instance to the + * formula cell being constructed. The caller <i>must not</i> pass a NULL + * token array pointer. + */ + ScFormulaCell( ScDocument* pDoc, const ScAddress& rPos, ScTokenArray* pArray, + const formula::FormulaGrammar::Grammar eGrammar = formula::FormulaGrammar::GRAM_DEFAULT, + sal_uInt8 cMatInd = MM_NONE ); + ScFormulaCell( ScDocument* pDoc, const ScAddress& rPos, const ScTokenArray& rArray, const formula::FormulaGrammar::Grammar eGrammar = formula::FormulaGrammar::GRAM_DEFAULT, sal_uInt8 cMatInd = MM_NONE ); |