diff options
author | Alessandro Portale <[email protected]> | 2019-01-17 01:38:54 +0100 |
---|---|---|
committer | Alessandro Portale <[email protected]> | 2019-01-17 13:00:37 +0000 |
commit | 710e57a628c90259297150ab3a0ac28e315ca1af (patch) | |
tree | c9c2f66436d6b16ec37035775a334366987d17d9 /src/libs/utils/ansiescapecodehandler.cpp | |
parent | 8acd583d1085f5b09cf2bef61c95166083885425 (diff) |
Fix warning: "Use midRef() instead of mid()"
[-Wclazy-qstring-ref]
Change-Id: If8a0844b39377feb3772542559655854a92b93cd
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/libs/utils/ansiescapecodehandler.cpp')
-rw-r--r-- | src/libs/utils/ansiescapecodehandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/utils/ansiescapecodehandler.cpp b/src/libs/utils/ansiescapecodehandler.cpp index 1739c8a3b15..dce3482b930 100644 --- a/src/libs/utils/ansiescapecodehandler.cpp +++ b/src/libs/utils/ansiescapecodehandler.cpp @@ -122,7 +122,7 @@ QList<FormattedText> AnsiEscapeCodeHandler::parseText(const FormattedText &input strippedText.remove(0, 1); continue; } - m_pendingText += strippedText.mid(0, escape.length()); + m_pendingText += strippedText.midRef(0, escape.length()); strippedText.remove(0, escape.length()); // \e[K is not supported. Just strip it. @@ -144,7 +144,7 @@ QList<FormattedText> AnsiEscapeCodeHandler::parseText(const FormattedText &input break; strNumber.clear(); } - m_pendingText += strippedText.mid(0, 1); + m_pendingText += strippedText.midRef(0, 1); strippedText.remove(0, 1); } if (strippedText.isEmpty()) |