diff options
| author | Laurent Montel <[email protected]> | 2022-10-11 08:58:40 +0200 |
|---|---|---|
| committer | Laurent Montel <[email protected]> | 2022-10-11 08:58:40 +0200 |
| commit | a50cc58e1b9586681e75602821316a23b982dab7 (patch) | |
| tree | 3914f6fa80406010a3b0fc7800719abc1a56e7fc | |
| parent | bb30d8f01a4ff79a927f003bcf3aa4a16f7ad1ba (diff) | |
Use const'ref
| -rw-r--r-- | src/kitemviews/kfileitemlisttostring.cpp | 2 | ||||
| -rw-r--r-- | src/kitemviews/kfileitemlisttostring.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/kitemviews/kfileitemlisttostring.cpp b/src/kitemviews/kfileitemlisttostring.cpp index 8e8f880e9..0004c7e7f 100644 --- a/src/kitemviews/kfileitemlisttostring.cpp +++ b/src/kitemviews/kfileitemlisttostring.cpp @@ -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()) { diff --git a/src/kitemviews/kfileitemlisttostring.h b/src/kitemviews/kfileitemlisttostring.h index 7eee0aec9..ad8c82b21 100644 --- a/src/kitemviews/kfileitemlisttostring.h +++ b/src/kitemviews/kfileitemlisttostring.h @@ -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 |
