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

Refactor doesn't seem to work properly anymore

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 2.2.0
    • Qt Creator 2.1.0-beta2
    • Editors
    • None
    • Ubuntu 10.10
    • daafa533d6e9d2efbbfdbf97d44ee8edabbaa957

    Description

      When attempting to rename a template class name Creator detected and changed all the references in other files, but skipped the current file. I am not sure I had ever tried to do this with templates in previous versions. Refactor in other cases has missed all references but I can't off the top of my head remember the circumstances. It worked much better in prior versions including b1.

      In short, it's not possible to rename this templated class:

      template <class TYPE> class Test
      {
      public:
      	Test()		{}
      	~Test()		{}
      };
      

      but it works in the non-templated case:

      class Test
      {
      public:
      	Test()		{}
      	~Test()		{}
      };
      

      Attachments

        Issue Links

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

          Activity

            People

              erikv Erik Verbruggen
              tdys Troy Dys
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes