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

[REG 4.3->4.4] Cannot refactor to camel case because "replacement text is unchanged"

    XMLWordPrintable

    Details

    • Commits:
      80415bd14ed472733929a38e3fce054bd4a5eab9

      Description

      Refactoring all caps global variable into camel case (using RMB -> Refactor -> Convert to Camel Case) does not work in this code example:

       

      #include <QString>
      #include <QDebug>
      
      const QString SOME_CONSTANT = QStringLiteral("Foo");
      
      int main()
      {
          qDebug() << SOME_CONSTANT;
      }
      

      "Replace" button is disabled, and tooltip says:

      Cannot replace because replacement text is unchanged.
      

      Although suggested replacement text "SomeConstant" IS different from original "SOME_CONSTANT". Or I misunderstood something?

      Please see screenshot attached.

        Attachments

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

          Activity

            People

            Assignee:
            aha_1980 André Hartmann
            Reporter:
            talkless Vincas Dargis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes