Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Hello,

Here's another "duplicateif" detected by cppcheck (thanks to Jesse's report
;-) )in vcl/source/gdi/outdev3.cxx (line 1999) :
        if( nMatchType & IMPL_FONT_ATTR_OTHERSTYLE )
        {
            if( !(nMatchType & IMPL_FONT_ATTR_OTHERSTYLE) )
                nTestMatch -= 10000;
        }
        else if( nMatchType & IMPL_FONT_ATTR_OTHERSTYLE )
            nTestMatch -= 10000;

I tried to find from when it's been there but after 5 minutes of searching
in gitk, I gave up.
(if someone knows a quick way to find at which commit a specific change has
been made... )

Could someone explain the logic of all this ? First I thought about a typo
but even with 1 typo, it means nothing.

Julien.

--
View this message in context: 
http://nabble.documentfoundation.org/duplicateif-in-vcl-source-gdi-outdev3-cxx-tp3333807p3333807.html
Sent from the Dev mailing list archive at Nabble.com.

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.