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


Hello,

Cppcheck reported this:
[sc/source/core/opencl/op_statistical.cxx:5103] ->
[sc/source/core/opencl/op_statistical.cxx:5099]: (style) Found duplicate
branches for 'if' and 'else'

Indeed, we have:
   5095             if (!pCurDVR->IsStartFixed() && pCurDVR->IsEndFixed())
   5096             {
   5097                 ss << "gid0; endFlag = "<< nCurWindowSize
<<"-gid0;\n";
   5098             }
   5099             else if (pCurDVR->IsStartFixed() &&
!pCurDVR->IsEndFixed())
   5100             {
   5101                 ss << "gid0; endFlag = gid0+"<< nCurWindowSize
<<";\n";
   5102             }
   5103             else
   5104             {
   5105                 ss << "gid0; endFlag = gid0+"<< nCurWindowSize
<<";\n";
   5106             }

See
http://opengrok.libreoffice.org/xref/core/sc/source/core/opencl/op_statistical.cxx#5095

Any idea what should it be?

Julien



--
View this message in context: 
http://nabble.documentfoundation.org/cppcheck-Duplicate-branch-if-else-in-op-statistical-cxx-sc-opencl-tp4088219.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.