diff options
author | hjk <hjk@qt.io> | 2020-07-13 18:28:42 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2020-07-14 05:56:45 +0000 |
commit | 5937fa009f2949ec08f620cac8033f784df339f2 (patch) | |
tree | ce124e2b80898d8822ca409d165b395f9daaa653 /src/plugins/cppeditor/cppquickfixes.cpp | |
parent | 6b7c823ce9009bb82066d48d269594bf752991fd (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.cpp | 4 |
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); |