Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
0ee8973a
Commit
0ee8973a
authored
Jun 19, 2018
by
Patrick José Pereira
Browse files
Use QStringRef to avoid temporary heap allocations
Signed-off-by:
Patrick José Pereira
<
patrickelectric@gmail.com
>
parent
7a391b7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/AnalyzeView/ULogParser.cc
View file @
0ee8973a
...
...
@@ -57,7 +57,7 @@ QString ULogParser::extractArraySize(QString &typeNameFull, int &arraySize)
return
typeNameFull
;
}
arraySize
=
typeNameFull
.
mid
(
startPos
+
1
,
endPos
-
startPos
-
1
).
toInt
();
arraySize
=
typeNameFull
.
mid
Ref
(
startPos
+
1
,
endPos
-
startPos
-
1
).
toInt
();
return
typeNameFull
.
mid
(
0
,
startPos
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment