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

In some cases suggestions from code completion for functions don't consider const

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • Qt Creator 1.3.83 (2.0.0-beta)
    • Editors
    • Windows 7 (64)
    • 59778cafd564c541cf0f59583a2f250ed03aeb79 debe9cc4f717cf0550bb141c716397bbae0ef85f

    Description

      Consider the struct below:

      struct Data
      {
          void f(int a);
          void g(const int a);
          void h(const int a) const;    
      };
      

      When defining the functions, if I start typing and then accept the automatic completion, this is how they end up.

      void Data::f(int a) //...
      void Data::g(int a) //...
      void Data::h(int a) //...
      

      So the const(s) were not considered.

      Attachments

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

        Activity

          People

            ckamm Christian Kamm
            leamelo Leandro T. C. Melo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes