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

QTextStream shouldn't have been polymorphic

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4: Low P4: Low
    • 6.6.0
    • 6.2.6, 6.4.2, 6.5.0 Beta2
    • Core: Serialization
    • None
    • All
    • 5
    • c889ffed9 (dev)
    • Foundation Sprint 75, Foundation Sprint 76

      The QTextStream class has no virtual functions others than the dtor, so it carries a vtable with no purpose other than making it less efficient than it could be and preventing adding well-defined move semantics.

      We should "deprecate" the polymorphy (adding final as an opt-in) and then make the dtor non-virtual in Qt 7.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes