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

[5.15.0 alpha] deprecated iterator operator used when QSet used as a signal/slot parameter

XMLWordPrintable

    • f949f336888c7205d06b56073805e201246fae9c (qt/qtbase/5.15)

      Using a QSet as signal/slot parameter results in a warning:

      C:\Qt\5.15.0\mingw73_64\include\QtCore\qset.h:177: warning: 'QHash<K, V>::const_iterator& QHash<K, V>::const_iterator::operator--() [with Key = QString; T = QHashDummyValue]' is deprecated [-Wdeprecated-declarations]
      inline QT_DEPRECATED const_iterator &operator--() { --i; return *this; }
      ^~~

      Steps to reproduce:

      1. Build the attached project
      2. Observe compile output

        1. qtbug82397.zip
          0.6 kB
          Miika Pernu
        For Gerrit Dashboard: QTBUG-82397
        # Subject Branch Project Status CR V

            manordheim MÃ¥rten Nordheim
            miikapernu Miika Pernu
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes