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

QTextStream shouldn't have been polymorphic

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • 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

    Description

      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.

      Attachments

        Issue Links

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

          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:

                Gerrit Reviews

                  There are no open Gerrit changes