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

Qt5: change QString(const QLatin1String&) c'tor to just QString(QLatin1String)

    XMLWordPrintable

Details

    Description

      Because QLatin1String is POD, passing it by value is cheaper than passing it by reference, see the following discussion:

      http://www.macieira.org/blog/2012/02/the-value-of-passing-by-value/

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            shaforostoff Nick Shaforostoff
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes