diff --git a/src/ui/util/dateutil.cpp b/src/ui/util/dateutil.cpp index ad37c015..b6b2615d 100644 --- a/src/ui/util/dateutil.cpp +++ b/src/ui/util/dateutil.cpp @@ -121,7 +121,7 @@ quint8 DateUtil::parseTimeMinute(const QString &period) return quint8(toStringView(period).right(2).toUInt()); } -QString DateUtil::localeDateTime(const QDateTime &dateTime, const QLocale::FormatType &format) +QString DateUtil::localeDateTime(const QDateTime &dateTime, QLocale::FormatType format) { return QLocale().toString(dateTime, format); } diff --git a/src/ui/util/dateutil.h b/src/ui/util/dateutil.h index 7a28d2bd..898c40d3 100644 --- a/src/ui/util/dateutil.h +++ b/src/ui/util/dateutil.h @@ -41,7 +41,7 @@ public: Q_INVOKABLE static quint8 parseTimeHour(const QString &period); Q_INVOKABLE static quint8 parseTimeMinute(const QString &period); - static QString localeDateTime(const QDateTime &dateTime, const QLocale::FormatType &format); + static QString localeDateTime(const QDateTime &dateTime, QLocale::FormatType format); }; #endif // DATEUTIL_H