diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-03-05 18:47:07 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-03-05 18:52:10 -0500 |
commit | 95637452609260c97d8e5aaa7500531bb458a8bc (patch) | |
tree | 14fc0e4a12b26eb3d6eacf108208576b1ec5981d /sc/inc/formulagroup.hxx | |
parent | 2b78f2cd7b9e4bab0f3b3b9119238f36a1bbc7b2 (diff) |
Fix incorrect group calc state check.
And the code in the else block is pretty dangerous as it passes an empty
token array to the group interpreter whose effect is entirely unpredictable.
Also, declare the destructor of CompiledFormula class to be virtual as it
serves as a base class for DynamicKernel.
Change-Id: I4e191550a4437ad6ebac55fcdeee4f3654722ff1
Diffstat (limited to 'sc/inc/formulagroup.hxx')
-rw-r--r-- | sc/inc/formulagroup.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/inc/formulagroup.hxx b/sc/inc/formulagroup.hxx index 602c4a4f6cd1..a3f1891417a4 100644 --- a/sc/inc/formulagroup.hxx +++ b/sc/inc/formulagroup.hxx @@ -81,6 +81,9 @@ struct FormulaGroupContext : boost::noncopyable */ class SC_DLLPUBLIC CompiledFormula { +public: + CompiledFormula(); + virtual ~CompiledFormula(); }; /** |