From 5937fa009f2949ec08f620cac8033f784df339f2 Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 13 Jul 2020 18:28:42 +0200 Subject: [PATCH] CppEditor: Avoid a use of QCharRef to make it compile with Qt6 Task-number: QTCREATORBUG-24098 Change-Id: If857b6e473f7df7303621695ffc0a66ad777bd7c Reviewed-by: Orgad Shaneh --- src/plugins/cppeditor/cppquickfixes.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/cppeditor/cppquickfixes.cpp b/src/plugins/cppeditor/cppquickfixes.cpp index 76570742939..1f08984a6c5 100644 --- a/src/plugins/cppeditor/cppquickfixes.cpp +++ b/src/plugins/cppeditor/cppquickfixes.cpp @@ -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);