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

Rename class does not rename defaulted destructor in cpp

    XMLWordPrintable

Details

    • Windows

    Description

      "Rename symbol" on a class does not rename the class in a defaulted destructor in the cpp file.

      Example header:

      class MyClass
      {
          MyClass();
          ~MyClass();
      };
      

      Example cpp:

      MyClass::MyClass()
      {
      }
      
      MyClass::~MyClass() = default;
      

      Cpp after "rename symbol" to "YourClass":

      YourClass::YourClass()
      {
      }
      
      MyClass::~MyClass() = default;
      

       

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            asperamanca Robert Schimkowitsch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes