Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-41708

QList insert behaviour addendum

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P4: Low
    • 5.6.0
    • 5.3.2
    • Documentation
    • None
    • 6acf41c2c2fbc9aa5b1118ed67e2200ce7fe6e07

    Description

      QList::insert states the following:

      "Inserts value at index position i in the list. If i is 0, the value is prepended to the list. If i is size(), the value is appended to the list."

      But the actual implementation would be better documented as:

      "Inserts value at index position i in the list. If i <= 0, the value is prepended to the list. If i >= size(), the value is appended to the list."

      Attachments

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

        Activity

          People

            vertries Nico Vertriest (Inactive)
            miketrahearn Mike Trahearn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes