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

Rename feature does not consider calls through iterators

XMLWordPrintable

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

      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();
              //...
          }
      }
      

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

            raggi Roberto Raggi
            leamelo Leandro T. C. Melo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes