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

QSqlError has broken move semantics

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • 6.6.0
    • 5.15, 6.0.0
    • SQL Support
    • d7607a463 (dev)

      QSqlError is a value type with broken move semantics. A value that's been moved-from via assignment operator will be valid (it will have the d-pointer of the assignee), while a value that's been moved from via move-construction will be invalid (d-pointer will be nullptr).

      Getters don't check the d-pointer for being a valid pointer. That is is ok as per QUIP-19.

      The class should generally use implicit sharing to avoid these inconsistencies.

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

            mabrand Mark Brand
            vhilshei Volker Hilsheimer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes