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

Rename symbol results in wrong result

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 3.1.0-beta
    • Qt Creator 3.0.0
    • C/C++/Obj-C++ Support
    • None
    • Windows 8.1 Pro 64-bit (under Parallels for Mac), Qt MSVC 2012 64-bit
    • bde1f044bc99950d3bba2b6b7a243cf9b591ea30

    Description

      Before rename:

      #include <QCoreApplication>
      
      void findValueByName()
      {
      }
      
      int main(int argc, char *argv[])
      {
          QCoreApplication a(argc, argv);
      
          findValueByName();
      
          return a.exec();
      }
      

      Attempt to refactor -> rename findValueByName to findByName results in:

      #include <QCoreApplication>
      
      void find ByName()
      {
      }
      
      int main(int argc, char *argv[])
      {
          QCoreApplication a(argc, argv);
      
          find ByName();
      	
          return a.exec();
      }
      

      Note: the apparent space between "find" and "ByName" is not an actual space but something else, as copy and paste stops after "find".

      Attachments

        Issue Links

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

          Activity

            People

              kosjar Nikolai Kosjar
              remarcmij Jim Cramer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes