Kaydet (Commit) bad3ddbb authored tarafından Eike Rathke's avatar Eike Rathke

OpCodeProviderImpl::initFuncOpCode: warn if there is no opcode mapping

During loading an xlsx document in an --enable-dbgutil build
OpCodeProviderImpl::OpCodeProviderImpl() spits out a warning
"OpCodeProviderImpl::OpCodeProviderImpl - opcodes not initialized"

OpCodeProviderImpl::initFuncOpCode() now gives a clue which.

Change-Id: Ia0bc53ce5a590e6904c660cd725d907efa5a731d
üst 0dce7abb
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include <com/sun/star/sheet/XFormulaParser.hpp> #include <com/sun/star/sheet/XFormulaParser.hpp>
#include <rtl/strbuf.hxx> #include <rtl/strbuf.hxx>
#include <rtl/ustrbuf.hxx> #include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include "oox/core/filterbase.hxx" #include "oox/core/filterbase.hxx"
#include "oox/helper/containerhelper.hxx" #include "oox/helper/containerhelper.hxx"
#include "oox/token/properties.hxx" #include "oox/token/properties.hxx"
...@@ -1228,6 +1229,9 @@ bool OpCodeProviderImpl::initFuncOpCode( FunctionInfo& orFuncInfo, const ApiToke ...@@ -1228,6 +1229,9 @@ bool OpCodeProviderImpl::initFuncOpCode( FunctionInfo& orFuncInfo, const ApiToke
{ {
// ignore entries for functions unknown by Calc *and* by Excel // ignore entries for functions unknown by Calc *and* by Excel
bIsValid = orFuncInfo.maOoxFuncName.isEmpty(); bIsValid = orFuncInfo.maOoxFuncName.isEmpty();
SAL_WARN_IF( !bIsValid, "sc",
"OpCodeProviderImpl::initFuncOpCode - no opcode mapping for function ODF '" <<
orFuncInfo.maOdfFuncName << "' <-> OOXML '" << orFuncInfo.maOoxFuncName << "'");
} }
} }
else if( orFuncInfo.mnBiffFuncId == BIFF_FUNC_EXTERNCALL ) else if( orFuncInfo.mnBiffFuncId == BIFF_FUNC_EXTERNCALL )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment