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


Hello,

Cppcheck reported this:
sc/source/core/data/fillinfo.cxx
507     variableScope   style   The scope of the variable 'bEmbed' can be reduced.

Here are the lines:
    507                                 bool bEmbed = false;
    508 
    509                                 if (bScenario)
    510                                 {
    511                                     pInfo->pBackground =
ScGlobal::GetButtonBrushItem();
    512                                     pThisRowInfo->bEmptyBack =
false;
    513                                 }
    514                                 else if (bEmbed)
    515                                 {
    516                                     pInfo->pBackground =
ScGlobal::GetEmbeddedBrushItem();
    517                                     pThisRowInfo->bEmptyBack =
false;
    518                                 }

and bEmbed is nowhere else in this function
See
http://opengrok.libreoffice.org/xref/core/sc/source/core/data/fillinfo.cxx#507

So should we remove bEmbed and the else if block or is something really
lacking?

Julien



--
View this message in context: 
http://nabble.documentfoundation.org/Cppcheck-bEmbed-always-false-block-never-called-in-fillinfo-cxx-sc-module-tp4036346.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.