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:
hjk
2020-07-13 18:28:42 +02:00
parent 6b7c823ce9
commit 5937fa009f

View File

@@ -1695,9 +1695,9 @@ public:
CppRefactoringFilePtr currentFile = refactoring.file(fileName()); CppRefactoringFilePtr currentFile = refactoring.file(fileName());
for (int i = 1; i < m_name.length(); ++i) { for (int i = 1; i < m_name.length(); ++i) {
QCharRef c = m_name[i]; const QChar c = m_name.at(i);
if (c.isUpper()) { if (c.isUpper()) {
c = c.toLower(); m_name[i] = c.toLower();
} else if (i < m_name.length() - 1 } else if (i < m_name.length() - 1
&& isConvertibleUnderscore(m_name, i)) { && isConvertibleUnderscore(m_name, i)) {
m_name.remove(i, 1); m_name.remove(i, 1);