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

Windows MSVC: cannot specify explicit initializer for arrays

Change-Id: Ic42897ba6bb520c931f63e56d0f453ed14cfaa3d
üst bd856bde
......@@ -119,6 +119,7 @@ namespace
FormulaToken** mpStart;
FormulaToken** mpStop;
TokenPointerRange() : mpStart(NULL), mpStop(NULL) {}
TokenPointerRange( FormulaToken** p, sal_uInt16 n ) :
mpStart(p), mpStop( p + static_cast<size_t>(n)) {}
};
......@@ -126,8 +127,11 @@ namespace
{
TokenPointerRange maPointerRange[2];
TokenPointers( FormulaToken** pCode, sal_uInt16 nLen, FormulaToken** pRPN, sal_uInt16 nRPN ) :
maPointerRange{ TokenPointerRange( pCode, nLen), TokenPointerRange( pRPN, nRPN)} {}
TokenPointers( FormulaToken** pCode, sal_uInt16 nLen, FormulaToken** pRPN, sal_uInt16 nRPN )
{
maPointerRange[0] = TokenPointerRange( pCode, nLen);
maPointerRange[1] = TokenPointerRange( pRPN, nRPN);
}
static bool skipToken( size_t i, const FormulaToken* const * pp )
{
......
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