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
9ba3e559
Commit
9ba3e559
authored
Jan 09, 2021
by
Waqar Ahmed
Browse files
Use const-ref where the function returns a const-ref
parent
147bd26d
Changes
1
Hide whitespace changes
Inline
Side-by-side
kate/quickopen/katequickopen.cpp
View file @
9ba3e559
...
...
@@ -67,8 +67,8 @@ protected:
const
QString
fileName
=
sourceModel
()
->
index
(
sourceRow
,
0
,
sourceParent
).
data
().
toString
();
const
auto
nameAndPath
=
fileName
.
splitRef
(
QStringLiteral
(
"{[split]}"
));
const
auto
name
=
nameAndPath
.
at
(
0
);
const
auto
path
=
nameAndPath
.
at
(
1
);
const
auto
&
name
=
nameAndPath
.
at
(
0
);
const
auto
&
path
=
nameAndPath
.
at
(
1
);
int
score
=
0
;
bool
res
=
false
;
...
...
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