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

When building the Qt docs, qdoc warns "using QCharRef with an index pointing outside the valid range of a QString...."

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.15.0 Beta1
    • 5.14.0 Beta3, 5.15.0 Alpha
    • Build tools: qdoc
    • None
    • All
    • 481930be315663b2f3db2de3d22c45f803af9e8f (qt/qttools/5.15)
    • QDoc Sprint 5

    Description

      This is a heads-up; the below warnings result from code like

      QString s;
      QChar third = s[2];
      

      which will crash at some point. Observed when running make docs

      Using QCharRef with an index pointing outside the valid range of a QString. The corresponding behavior is deprecated, and will be changed in a future version of Qt.
      Using QCharRef with an index pointing outside the valid range of a QString. The corresponding behavior is deprecated, and will be changed in a future version of Qt.
      Using QCharRef with an index pointing outside the valid range of a QString. The corresponding behavior is deprecated, and will be changed in a future version of Qt.
      Using QCharRef with an index pointing outside the valid range of a QString. The corresponding behavior is deprecated, and will be changed in a future version of Qt.
      Using QCharRef with an index pointing outside the valid range of a QString. The corresponding behavior is deprecated, and will be changed in a future version of Qt.
      Using QCharRef with an index pointing outside the valid range of a QString. The corresponding behavior is deprecated, and will be changed in a future version of Qt.
      Using QCharRef with an index pointing outside the valid range of a QString. The corresponding behavior is deprecated, and will be changed in a future version of Qt.
      Using QCharRef with an index pointing outside the valid range of a QString. The corresponding behavior is deprecated, and will be changed in a future version of Qt.
      Using QCharRef with an index pointing outside the valid range of a QString. The corresponding behavior is deprecated, and will be changed in a future version of Qt.
      Using QCharRef with an index pointing outside the valid range of a QString. The corresponding behavior is deprecated, and will be changed in a future version of Qt.
      

      Attachments

        For Gerrit Dashboard: QTBUG-80346
        # Subject Branch Project Status CR V

        Activity

          People

            andysh Andy Shaw
            kleint Friedemann Kleint
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes