[Libreoffice] cppcheck "Found duplicate branches for if and else" in libs-core

Julien Nabet serval2412 at yahoo.fr
Fri Apr 22 05:06:54 PDT 2011


Hello,

I've runned a cppcheck last git version on libs-core (master branch 
updated today) and found this oddity :
[basic/source/app/mybasic.cxx:265] -> 
[basic/source/app/mybasic.cxx:260]: (style) Found duplicate branches for 
if and else.
[embeddedobj/source/msole/olepersist.cxx:1835] -> 
[embeddedobj/source/msole/olepersist.cxx:1823]: (style) Found duplicate 
branches for if and else.
[svx/source/gallery2/galctrl.cxx:701] -> 
[svx/source/gallery2/galctrl.cxx:699]: (style) Found duplicate branches 
for if and else.
[svx/source/svdraw/svdpagv.cxx:890] -> 
[svx/source/svdraw/svdpagv.cxx:887]: (style) Found duplicate branches 
for if and else.
[svx/source/unodraw/unoshape.cxx:3091] -> 
[svx/source/unodraw/unoshape.cxx:3084]: (style) Found duplicate branches 
for if and else.

Is it a kind of "side effect" of a merge ?
Then I don't know if the "if/else" must be removed or if one of them 
must be modified ; I let you judge.
If useful, I can run cppcheck on the other modules and filter on this 
"style" error, just tell me.

Julien.


More information about the LibreOffice mailing list