summaryrefslogtreecommitdiff
path: root/lotuswordpro/source
diff options
context:
space:
mode:
Diffstat (limited to 'lotuswordpro/source')
-rw-r--r--lotuswordpro/source/filter/lwptblformula.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/lotuswordpro/source/filter/lwptblformula.cxx b/lotuswordpro/source/filter/lwptblformula.cxx
index 7732d48153e7..5ec8fbab94f9 100644
--- a/lotuswordpro/source/filter/lwptblformula.cxx
+++ b/lotuswordpro/source/filter/lwptblformula.cxx
@@ -194,9 +194,9 @@ void LwpFormulaInfo::ReadExpression()
case TK_MAXIMUM:
case TK_AVERAGE:
{
- LwpFormulaFunc* pFunc = new LwpFormulaFunc(TokenType);
- ReadArguments(*pFunc);
- m_aStack.push_back(pFunc);
+ std::unique_ptr<LwpFormulaFunc> xFunc(new LwpFormulaFunc(TokenType));
+ ReadArguments(*xFunc);
+ m_aStack.push_back(xFunc.release());
}
break;