Hi Julien,
On Mon, 2011-05-16 at 19:08 +0200, Julien Nabet wrote:
Here a line I get in cppcheck (updated today) :
[source/core/layout/flycnt.cxx:1194] ->
[source/core/layout/flycnt.cxx:1194]: (style) Same expression on both
sides of '<'.
What fun :-)
I checked the file git history, it's there since the beginning.
while ( pDownFrm && ( ( nDown.nMain != LONG_MAX &&
nDownLst < nDownLst
So - this is the guy.
sal_Bool operator<( const SwDistance& rTwo )
{ return nMain < rTwo.nMain || (
So - we end up with: that equating to:
nDownLst.nSub && nDownLst.nSub && nDownLst.nSub < nDownLst.nSub
Which seems like it is always false ;-) so lets just axe that
comparison if indeed we have this code in the first checkin (in
2000) ;-)
Thanks !
Michael.
--
michael.meeks@novell.com <><, Pseudo Engineer, itinerant idiot
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.