Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
3c78cd08
Commit
3c78cd08
authored
Jan 30, 2021
by
Christoph Cullmann
🐮
Browse files
avoid string re-allocations if possible
parent
b255405b
Changes
1
Show whitespace changes
Inline
Side-by-side
addons/search/SearchDiskFiles.cpp
View file @
3c78cd08
...
...
@@ -75,12 +75,12 @@ void SearchDiskFiles::run()
QVector
<
KateSearchMatch
>
SearchDiskFiles
::
searchSingleLineRegExp
(
QFile
&
file
)
{
QTextStream
stream
(
&
file
);
QString
line
;
int
i
=
0
;
int
column
;
QRegularExpressionMatch
match
;
QVector
<
KateSearchMatch
>
matches
;
while
(
!
(
line
=
stream
.
readLine
()).
isNull
())
{
QString
line
;
while
(
stream
.
readLineInto
(
&
line
))
{
if
(
m_worklist
.
isCanceled
())
{
break
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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