diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-10-28 07:48:09 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-10-28 10:28:54 +0100 |
commit | 43589626af4bc04dc8282b4321a1462eba2d653a (patch) | |
tree | 4b8537e29f0dac42166974111301d32690268d1a /sc | |
parent | 9813516d5e704c5949bd0010874ad115d57218dc (diff) |
loplugin:unreffun
Change-Id: I080474c3930d634ff1cf1c8bfd0f51a3ca537992
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/oox/formulaparser.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/filter/oox/formulaparser.cxx b/sc/source/filter/oox/formulaparser.cxx index 77ecaeeede28..99098188aa40 100644 --- a/sc/source/filter/oox/formulaparser.cxx +++ b/sc/source/filter/oox/formulaparser.cxx @@ -747,7 +747,8 @@ size_t FormulaParserImpl::popOperandSize() ApiToken& FormulaParserImpl::getOperandToken( size_t nOpCountFromEnd, size_t nOpIndex, size_t nTokenIndex ) { - OSL_ENSURE( getOperandSize( nOpCountFromEnd, nOpIndex ) > nTokenIndex, + SAL_WARN_IF( + getOperandSize( nOpCountFromEnd, nOpIndex ) <= nTokenIndex, "sc.filter", "FormulaParserImpl::getOperandToken - invalid parameters" ); SizeTypeVector::const_iterator aIndexIt = maTokenIndexes.end(); for( SizeTypeVector::const_iterator aEnd = maOperandSizeStack.end(), aIt = aEnd - nOpCountFromEnd + nOpIndex; aIt != aEnd; ++aIt ) |