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


Hello,

Taking a look to the new reports generated by Cppcheck, I noticed
"duplicateConditionalAssign" and specifically this code:
   2028     // If comparing the entire font, or if checking before each
alteration
   2029     // whether the value changes, remains relatively the same thing.
   2030     // So possible one MakeUniqFont more in the font, but as a
result a quicker
   2031     // abortion of the query, or one must each time check bChanged.
   2032     if ( rFont == aPrevFont  )
   2033         rFont = aPrevFont;  // => The same ImpPointer for
IsSameInstance

See
https://opengrok.libreoffice.org/xref/core/editeng/source/editeng/editdoc.cxx?r=40d25921#2028

Another similar place:
xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx
    800         if( xcert == nullptr ) {
    801             xcert = nullptr ;  <-- whereas in other parts of the
same file, we see a throw instruction
    802         } else {

Any thoughts?

Julien




--
Sent from: http://document-foundation-mail-archive.969070.n3.nabble.com/Dev-f1639786.html

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.