From 0ee8973abfbd55c6c6da48b0e6120597b5d36089 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Tue, 19 Jun 2018 23:14:56 -0300 Subject: [PATCH] Use QStringRef to avoid temporary heap allocations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- src/AnalyzeView/ULogParser.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AnalyzeView/ULogParser.cc b/src/AnalyzeView/ULogParser.cc index d6b7f365e..f3a384c28 100644 --- a/src/AnalyzeView/ULogParser.cc +++ b/src/AnalyzeView/ULogParser.cc @@ -57,7 +57,7 @@ QString ULogParser::extractArraySize(QString &typeNameFull, int &arraySize) return typeNameFull; } - arraySize = typeNameFull.mid(startPos + 1, endPos - startPos - 1).toInt(); + arraySize = typeNameFull.midRef(startPos + 1, endPos - startPos - 1).toInt(); return typeNameFull.mid(0, startPos); } -- 2.22.0