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

QSet::remove() unconditionally detaches

    XMLWordPrintable

Details

    • 3
    • b80679a90 (dev), cd99c6aad (6.9), 66456f9aa (6.8), cf7cd0818 (tqtc/lts-6.5), 150d3e344 (tqtc/lts-6.2), 02118ed09 (tqtc/lts-5.15), 3a284dc19 (dev), 605a20b26 (6.9), 4299115fe (6.8), e1efc67bc (tqtc/lts-6.5)
    • Foundation Sprint 123, Foundation Sprint 124

    Description

      QSet::remove() (via QHash::remove()) and removeIf() (via QtPrivate::set_erase_if()) detache from shared state even if nothing is being removed.

      Expected behaviour: if remove() or removeIf() doesn't modify the container, then shared state is not detach()ed from.

      Attachments

        For Gerrit Dashboard: QTBUG-132831
        # Subject Branch Project Status CR V

        Activity

          People

            mmutz Marc Mutz
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: