forked from qt-creator/qt-creator
CppEditor: Avoid a use of QCharRef to make it compile with Qt6
Task-number: QTCREATORBUG-24098 Change-Id: If857b6e473f7df7303621695ffc0a66ad777bd7c Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -1695,9 +1695,9 @@ public:
|
||||
CppRefactoringFilePtr currentFile = refactoring.file(fileName());
|
||||
|
||||
for (int i = 1; i < m_name.length(); ++i) {
|
||||
QCharRef c = m_name[i];
|
||||
const QChar c = m_name.at(i);
|
||||
if (c.isUpper()) {
|
||||
c = c.toLower();
|
||||
m_name[i] = c.toLower();
|
||||
} else if (i < m_name.length() - 1
|
||||
&& isConvertibleUnderscore(m_name, i)) {
|
||||
m_name.remove(i, 1);
|
||||
|
||||
Reference in New Issue
Block a user