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

QXmlAttributes is returning copies on call to value

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: 4.8.2
    • Fix Version/s: None
    • Component/s: XML: QtXmlPatterns
    • Labels:
      None

      Description

      QXmlAttributes is returning copies on calls to value.
      Wouldn't it make sense to return const references?
      In almost every case it's just a query - without modifying.
      QStringRef would also make sense in my opinion.

        Attachments

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

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              alessandrowinkler Alessandro Winkler
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes