Re: Cppcheck: incorrectLogicOperator in svxrectctaccessiblecontext.cxx (in svx module)

2013-05-13 Thread Stephan Bergmann
On 05/12/2013 07:25 PM, julien2412 wrote: cppcheck reported this: error file=svx/source/accessibility/svxrectctaccessiblecontext.cxx line=612 id=incorrectLogicOperator severity=style msg=Logical disjunction always evaluates to true: nIndex gt;= 0 || nIndex lt; 0./ Indeed we have in this file

[SOLVED] Re: Cppcheck: incorrectLogicOperator in svxrectctaccessiblecontext.cxx (in svx module)

2013-05-13 Thread julien2412
Indeed, I hadn't noticed it was a virtual function and had just read the function in the same file svxrectctaccessiblecontext.cxx which returned 0. I don't know if cppcheck could take this into account. Anyway, thank you Stephan for your respond. Julien -- View this message in context:

Cppcheck: incorrectLogicOperator in svxrectctaccessiblecontext.cxx (in svx module)

2013-05-12 Thread julien2412
Hello, cppcheck reported this: error file=svx/source/accessibility/svxrectctaccessiblecontext.cxx line=612 id=incorrectLogicOperator severity=style msg=Logical disjunction always evaluates to true: nIndex gt;= 0 || nIndex lt; 0./ Indeed we have in this file that: 610 void