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

With QT_NO_CAST_FROM_ASCII there is still a set of functions that will take in a const char * and Q_NO_DECLARED_NOT_DEFINED is in qstring.h despite it is not used in Qt 5.x

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P5: Not important
    • 5.3.0
    • 5.0.0, 5.1.1, 5.2.1, 5.3.0 Alpha
    • None
    • Linux

    Description

      #include <QString>

      int main(int argc, char *argv[])
      {
      QString str;
      str += "test";
      return 0;
      }

      This compiles with the following error on Linux with QT_NO_CAST_FROM_ASCII :

      QString& QString::operator+=(const char*) is private within this context

      and it shouldn't be just private.

      Attachments

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

        Activity

          People

            nierob Nierob
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes