sc/inc/tokenarray.hxx | 2 +- sc/source/filter/oox/defnamesbuffer.cxx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-)
New commits: commit fa25c39749e3ed592fdf87eecf21a960fef44b8f Author: Caolán McNamara <[email protected]> Date: Wed Feb 14 12:13:52 2018 +0000 unused ScTokenArray Change-Id: I3132cf7f94efed2db68a1715a892424a24aa1638 Reviewed-on: https://gerrit.libreoffice.org/49715 Tested-by: Jenkins <[email protected]> Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Caolán McNamara <[email protected]> diff --git a/sc/inc/tokenarray.hxx b/sc/inc/tokenarray.hxx index feedf95475e9..f5f9a3d3c65a 100644 --- a/sc/inc/tokenarray.hxx +++ b/sc/inc/tokenarray.hxx @@ -44,7 +44,7 @@ struct ScRawToken; struct ScSingleRefData; struct ScComplexRefData; -class SC_DLLPUBLIC ScTokenArray : public formula::FormulaTokenArray +class SAL_WARN_UNUSED SC_DLLPUBLIC ScTokenArray : public formula::FormulaTokenArray { friend class ScCompiler; diff --git a/sc/source/filter/oox/defnamesbuffer.cxx b/sc/source/filter/oox/defnamesbuffer.cxx index 6f761b2c9b7c..5b6adf58801b 100644 --- a/sc/source/filter/oox/defnamesbuffer.cxx +++ b/sc/source/filter/oox/defnamesbuffer.cxx @@ -324,7 +324,6 @@ void DefinedName::createNameObject( sal_Int32 nIndex ) std::unique_ptr<ScTokenArray> DefinedName::getScTokens( const css::uno::Sequence<css::sheet::ExternalLinkInfo>& rExternalLinks ) { - ScTokenArray aTokenArray; ScCompiler aCompiler(&getScDocument(), ScAddress(0, 0, mnCalcSheet), formula::FormulaGrammar::GRAM_OOXML); aCompiler.SetExternalLinks( rExternalLinks); std::unique_ptr<ScTokenArray> pArray(aCompiler.CompileString(maModel.maFormula)); _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
