Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-9525

Assign to Local Variable should resolve templates

    XMLWordPrintable

Details

    • e98664690558aafa2833e07fd0c13a003cec8b32 af0582cdc9f6e8e0de0453846bda22c8956e6347

    Description

      #include <QList>
      
      struct Foo
      {
          int foo;
      };
      
      void assign()
      {
          QList<Foo> list;
          return list.first().foo; // assign to local var
      }

      Result:

      return const T localFirst = list.first().foo;

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-9525
        # Subject Branch Project Status CR V

        Activity

          People

            kosjar Nikolai Kosjar
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes