diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-11-04 20:36:53 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-11-06 20:40:21 -0500 |
commit | df8257faf64b01f3de26277742195693ddfe29fc (patch) | |
tree | 344e21796463d80d6fdb450864bceba9bdf5d8a7 /sc/inc | |
parent | 55107688ea606d229ccdb12df6e570ae02db1999 (diff) |
Check all call sites of CompileString() and make sure we don't leak.
We *were* leaking quite a bit.
Change-Id: I3f53eff22beab27b34a055a4452311f2e2f771db
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/compiler.hxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sc/inc/compiler.hxx b/sc/inc/compiler.hxx index 28e4efebf013..c16f749cbeec 100644 --- a/sc/inc/compiler.hxx +++ b/sc/inc/compiler.hxx @@ -431,7 +431,14 @@ public: bool IsCorrected() { return bCorrected; } const OUString& GetCorrectedFormula() { return aCorrectedFormula; } - // Use convention from this->aPos by default + /** + * Tokenize formula expression string into an array of tokens. + * + * @param rFormula formula expression to tokenize. + * + * @return heap allocated token array object. The caller <i>must</i> + * manage the life cycle of this object. + */ ScTokenArray* CompileString( const OUString& rFormula ); ScTokenArray* CompileString( const OUString& rFormula, const OUString& rFormulaNmsp ); const ScDocument* GetDoc() const { return pDoc; } |