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


On 21/01/12 08:53, julien2412 wrote:
Hello,

Cppcheck reported this :
core/sw/source/ui/dbui/dbtree.cxx
349   duplicateBranch style   Found duplicate branches for if and else.

                        if(bTable)<--- Found duplicate branches for if and
else.
                            InsertEntry(sName, pParent);
                        else
                            InsertEntry(sName, pParent);
I took a look at the git history, it's been there since the initial commit
on 2000.

So either the if(bTable) is useless or something's missing.

reading the code above the if, bTable is used for 2 different ways to
get the table columns.
thus, the if(bTable) looks totally spurious and should be removed.

Any idea ?

Julien.


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.