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

src/libs/qtcreatorcdbext/pytype.cpp: 2 * bad find

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Not Evaluated
    • None
    • Qt Creator 4.4.0
    • Debugger
    • None

    Description

      1.

      qt-creator-opensource-src-4.4.0/src/libs/qtcreatorcdbext/pytype.cpp:283]: (performance) Inefficient usage of string::find() in condition; string::compare() would be faster.

      Source code is

      if (typeName.find("<function>") == 0)

      2.

      src/libs/qtcreatorcdbext/pytype.cpp:412]: (performance) Inefficient usage of string::find() in condition; string::compare() would be faster.

      Source code is

      if (typeName.find("enum ") == 0)

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rlohning Robert Löhning
            dcb David Binderman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes