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

Incorrect code completion (pointer to method)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • None
    • Qt Creator 2.7.1, Qt Creator 2.8.0-beta
    • C/C++/Obj-C++ Support
    • None
    • Win 8 x64
      Qt 5.0.1

      main.cpp
      
      void cmdLine::callFunc(int i)
      {
          //(this->*myCmdList[i]->cmdFuncPtr)();    // bug Qt creator is enforcing using ->
          (this->*myCmdList[i].cmdFuncPtr)();   //correct way
      }
      
      

      I attach code sample.

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

            kosjar Nikolai Kosjar
            markac Maria Kaczynska
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes