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

qputenv doesn't accept QStringBuilder expression any more

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Not Evaluated
    • None
    • 6.6
    • Core: Other
    • None
    • Fedora 37, gcc 12.2.1

    Description

      I various places in KDE we have code that does something like

      QByteArray foo = ...;
      qputenv("FOO", foo + "bar"); 

      This used to work fine until at least 6.4. With current dev however I get

      error: could not convert 'operator+<QByteArray, char [2]>(foo, ":")' from 'QStringBuilder<QByteArray, char [2]>' to 'QByteArrayView'
      
         73 |             qputenv("FOO", foo + ":");
      
            |                            ~~~~^~~~~
      
            |                                |
      
            |                                QStringBuilder<QByteArray, char [2]>
      

      I haven't tested 6.5 in particular, but given that I suspect https://codereview.qt-project.org/c/qt/qtbase/+/424888 is the relevant code change it should be affected too

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            nicolasfella Nicolas Fella
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes