mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
Use const'ref
This commit is contained in:
parent
bb30d8f01a
commit
a50cc58e1b
|
@ -14,7 +14,7 @@
|
||||||
#include <QFontMetrics>
|
#include <QFontMetrics>
|
||||||
#include <QString>
|
#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;
|
QString text;
|
||||||
switch (items.count()) {
|
switch (items.count()) {
|
||||||
|
|
|
@ -51,6 +51,6 @@ enum ItemsState {
|
||||||
* Otherwise returns something like "5 Files", "8 Selected Folders" or "60 Items"
|
* Otherwise returns something like "5 Files", "8 Selected Folders" or "60 Items"
|
||||||
* while being as specific as possible.
|
* 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
|
#endif // KFILEITEMLISTTOSTRING_H
|
||||||
|
|
Loading…
Reference in a new issue