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

No template constructor for QLatin1String

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P4: Low
    • None
    • 5.7.0
    • None

    Description

      Qt 4.8 has a QLatin1Literal class with a template constructor

      template<int N> QLatin1Literal(const char(&str)[N])

      In Qt 5 QLatin1Literal is typedefed to QLatin1String, which has not such a constructor. QSting on the other hand has such a constructor, which was missing in Qt 4.8

      If you now migrate QLatin1Literal optimized QT 4.8 code to Qt 5. The use of
      QLatin1Literal becomes an de-optimizer.

      Attachments

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

        Activity

          People

            laknoll Lars Knoll
            daschuer Daniel Schürmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes