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

Incorrect code completion (pointer to method)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • 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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes