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

Review our API for default arguments that are of non-trivial type and replace with overloading

    XMLWordPrintable

    Details

    • Epic Name:
      Expensive default arguments
    • Platform/s:
      All

      Description

      Default arguments are a convenient way to avoid overloads, but if the defaulted argument isn't a Trivial Type, and a common use case is to not pass the extra argument explicitly, the construction of the temporary can dominate the call's runtime. It certainly causes useless code being emitted at the call site.

      Therefore, check all of our APIs for non-trivial default arguments and consider replacing them with overloads.

        Attachments

        For Gerrit Dashboard: QTBUG-98117
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            cnn Qt Core & Network
            Reporter:
            mmutz Marc Mutz
            PM Owner:
            Vladimir Minenko Vladimir Minenko
            RnD Owner:
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes