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

Conversion operators get an extra return type

XMLWordPrintable

      The documentation of e.g. QColor::operator QVariant() const has an extra return type added, like this:

      QVariant QColor::operator QVariant() const
      

      (cf. e.g. https://doc.qt.io/qt-6/qcolor.html#operator-QVariant):

      Like constructors, conversion operators don't have a return type. It's harmless to have them, but it's not correct C++, so would be nice if it could be fixed at some point.

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

            docteam Qt Documentation Team
            mmutz Marc Mutz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes