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
System
Dolphin
Commits
a50cc58e
Commit
a50cc58e
authored
Oct 11, 2022
by
Laurent Montel
Browse files
Use const'ref
parent
bb30d8f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/kitemviews/kfileitemlisttostring.cpp
View file @
a50cc58e
...
...
@@ -14,7 +14,7 @@
#include
<QFontMetrics>
#include
<QString>
QString
fileItemListToString
(
KFileItemList
items
,
int
maximumTextWidth
,
QFontMetrics
fontMetrics
,
ItemsState
itemsState
)
QString
fileItemListToString
(
KFileItemList
items
,
int
maximumTextWidth
,
const
QFontMetrics
&
fontMetrics
,
ItemsState
itemsState
)
{
QString
text
;
switch
(
items
.
count
())
{
...
...
src/kitemviews/kfileitemlisttostring.h
View file @
a50cc58e
...
...
@@ -51,6 +51,6 @@ enum ItemsState {
* Otherwise returns something like "5 Files", "8 Selected Folders" or "60 Items"
* while being as specific as possible.
*/
QString
fileItemListToString
(
KFileItemList
items
,
int
maximumTextWidth
,
QFontMetrics
fontMetrics
,
ItemsState
itemsState
=
ItemsState
::
None
);
QString
fileItemListToString
(
KFileItemList
items
,
int
maximumTextWidth
,
const
QFontMetrics
&
fontMetrics
,
ItemsState
itemsState
=
ItemsState
::
None
);
#endif // KFILEITEMLISTTOSTRING_H
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