Commit 893cc279 authored by Laurent Montel's avatar Laurent Montel 😁

const'ify

parent a09fb780
......@@ -64,7 +64,7 @@ void EditorUtil::sentenceCase(QTextCursor &cursor) const
void EditorUtil::reverseCase(QTextCursor &cursor) const
{
if (cursor.hasSelection()) {
QString newText = cursor.selectedText();
const QString newText = cursor.selectedText();
QString reverseCaseText;
const int nbChar(newText.count());
for (int i = 0; i < nbChar; ++i) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment