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/source/filter/oox/formulabuffer.cxx | |
parent | a09f7fddb4e847b35e6d47a45403c649152dd671 (diff) |
Avoid duplication of ScTokenArray during formula cell construction.
For slightly less overhead.
Change-Id: Ie5861d585d6e22fbd19dfd57edfebae4f4504839
Diffstat (limited to 'sc/source/filter/oox/formulabuffer.cxx')
-rw-r--r-- | sc/source/filter/oox/formulabuffer.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sc/source/filter/oox/formulabuffer.cxx b/sc/source/filter/oox/formulabuffer.cxx index 3dde87b8824b..bc074a29330d 100644 --- a/sc/source/filter/oox/formulabuffer.cxx +++ b/sc/source/filter/oox/formulabuffer.cxx @@ -27,8 +27,6 @@ #include "externalrefmgr.hxx" #include "oox/token/tokens.hxx" -#include <boost/scoped_ptr.hpp> - using namespace com::sun::star; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::table; @@ -99,11 +97,11 @@ void FormulaBuffer::applyCellFormulas( const std::vector< TokenAddressItem >& rV ScExternalRefManager::ApiGuard aExtRefGuard(&rDoc.getDoc()); ScCompiler aCompiler(&rDoc.getDoc(), aPos); aCompiler.SetGrammar(formula::FormulaGrammar::GRAM_ENGLISH_XL_OOX); - boost::scoped_ptr<ScTokenArray> pCode(aCompiler.CompileString(it->maTokenStr)); + ScTokenArray* pCode = aCompiler.CompileString(it->maTokenStr); if (!pCode) continue; - rDoc.setFormulaCell(aPos, *pCode); + rDoc.setFormulaCell(aPos, pCode); } } |