mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
Use const'ref
This commit is contained in:
parent
bb30d8f01a
commit
a50cc58e1b
|
@ -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()) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue