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

Refactoring: "Add Member Function" does not respect 'const'

    XMLWordPrintable

Details

    • Windows
    • 118c493c6 (11.0)

    Description

      Using the new refactoring feature "Add Member Function" from QTCREATORBUG-10356.

      When writing down a call to a non-existing member function foo() within a const member function bar() of class Foobar the new method added by calling refacotoring:
      Add Member Function "foo"
      is missing the const specifier:

      I get in the private section of class Foobar:

      void foo();

      but I would need

      void foo() const;

      So the current refactoring results in a not usable declaration.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            moellney Michael Möllney
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes