Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-27380

More invalid cases of M325

XMLWordPrintable

    • 9656eb9e7a (qt-creator/qt-creator/7.0) 9656eb9e7a (qt-creator/qt-creator/master) 9656eb9e7a (qt-creator/qt-creator/qds-3.3) 9656eb9e7a (qt-creator/tqtc-qt-creator/7.0)

      QTCREATORBUG-25917 fixed numerous issues with strict equality checks, but some cases remain.

      let bool1 = true
      if (bool1 === true) {} // OK
      
      let bool2 = Boolean(1>0)
      if (bool2 === true) {} // Warning M325
      
      let str1 = "true"
      if (str1 === "true") {} // OK
      
      let str2 = String(bool1)
      if (str2 === "true") {} // Warning M325
      

       

        For Gerrit Dashboard: QTCREATORBUG-27380
        # Subject Branch Project Status CR V

            cstenger Christian Stenger
            skoh-qt Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes