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


Hello,

Cppcheck reported this:
[filter/source/graphicfilter/icgm/actimpr.cxx:340] ->
[filter/source/graphicfilter/icgm/actimpr.cxx:338]: (style) Found duplicate
branches for if and else

Here are the lines:
    338         if ( mpCGM->pElement->nAspectSourceFlags & ASF_LINECOLOR )
    339             aHatch.Color = nFillColor;
    340         else
    341             aHatch.Color = nFillColor;

Can I just remove the if else and keep "aHatch.Color = nFillColor;" since
it's like that from the first commit of this file in 2009?

Julien



--
View this message in context: 
http://nabble.documentfoundation.org/cppcheck-duplicateExpression-in-filter-source-graphicfilter-icgm-actimpr-cxx-tp4007770.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.