summaryrefslogtreecommitdiff
path: root/formula/source
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-07-11 16:44:40 +0200
committerEike Rathke <erack@redhat.com>2017-07-11 16:44:46 +0200
commitc5cb46b45b69b03e5a6735b9c59bf686069ad401 (patch)
tree08f3a7bae1f0b364f52de37c3d49979fbb8007a4 /formula/source
parent3087b8f5d500866d17946b9f442af6a74a7f99dd (diff)
Instanciate FormulaCompiler using createCompiler()
So this actually obeys all application specific rules when generating RPN code. Change-Id: I5e1a89efffe5188d3c4b68176cc410a6cd76483a
Diffstat (limited to 'formula/source')
-rw-r--r--formula/source/ui/dlg/formula.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/formula/source/ui/dlg/formula.cxx b/formula/source/ui/dlg/formula.cxx
index 9e8e56b4eab1..9e66f7e663fb 100644
--- a/formula/source/ui/dlg/formula.cxx
+++ b/formula/source/ui/dlg/formula.cxx
@@ -777,11 +777,11 @@ void FormulaDlg_Impl::UpdateTokenArray( const OUString& rStrExp)
}
} // if ( pTokens && nLen == m_aTokenList.getLength() )
- FormulaCompiler aCompiler(*m_pTokenArray.get());
+ std::unique_ptr<FormulaCompiler> pCompiler( m_pHelper->createCompiler(*m_pTokenArray.get()));
// #i101512# Disable special handling of jump commands.
- aCompiler.EnableJumpCommandReorder(false);
- aCompiler.EnableStopOnError(false);
- aCompiler.CompileTokenArray();
+ pCompiler->EnableJumpCommandReorder(false);
+ pCompiler->EnableStopOnError(false);
+ pCompiler->CompileTokenArray();
}
void FormulaDlg_Impl::FillDialog(bool bFlag)