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

Rename feature does not consider calls through iterators

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • Qt Creator 1.3.83 (2.0.0-beta)
    • Editors
    • None
    • Windows 7 (64)

    Description

      In the code snippet below, if I rename Data's member function doSomething the call made from inside main is not updated.

      struct Data
      {
          void doSomething() { /* ... */ }
      };
      
      int main(int argc, char *argv[])
      {
          QHash<int, Data> table;
          //...
      
          for (QHash<int, Data>::iterator it = table.begin(); it != table.end(); ++it) {
              //...
              it.value().doSomething();
              //...
          }
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              raggi Roberto Raggi
              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