aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/cppquickfixes.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2020-07-13 18:28:42 +0200
committerhjk <hjk@qt.io>2020-07-14 05:56:45 +0000
commit5937fa009f2949ec08f620cac8033f784df339f2 (patch)
treece124e2b80898d8822ca409d165b395f9daaa653 /src/plugins/cppeditor/cppquickfixes.cpp
parent6b7c823ce9009bb82066d48d269594bf752991fd (diff)
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>
Diffstat (limited to 'src/plugins/cppeditor/cppquickfixes.cpp')
-rw-r--r--src/plugins/cppeditor/cppquickfixes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/cppeditor/cppquickfixes.cpp b/src/plugins/cppeditor/cppquickfixes.cpp
index 7657074293..1f08984a6c 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);