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

    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: