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

Asymmetric operator+=(QByteArray, QString) when QStringBuilder is in use

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.6
    • None

    Description

      Given:

      QByteArray ba;
      QString s;
      

      then

      // build error
      ba += s; 
      
       // build error, unless QStringBuilder is active, and QT_NO_CAST_TO_ASCII is not defined
      ba += (s+s);
      

      Either we support the first case (and we guard it by QT_NO_CAST_TO_ASCII), or we shouldn't be supporting the second case either. In which case, there is no longer anything in Qt that uses QT_NO_CAST_TO_ASCII.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            peppe Giuseppe D'Angelo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes