Commit 7a21837b authored by Laurent Montel's avatar Laurent Montel 😁

Consti'fy

parent 00f5565a
......@@ -40,7 +40,7 @@ ActivityInfoStaticInit ActivityInfoStaticInit::_instance;
} // namespace details
QDBusArgument &operator<<(QDBusArgument &arg, const ActivityInfo r)
QDBusArgument &operator<<(QDBusArgument &arg, const ActivityInfo &r)
{
arg.beginStructure();
......
......@@ -53,7 +53,7 @@ typedef QList<ActivityInfo> ActivityInfoList;
Q_DECLARE_METATYPE(ActivityInfo)
Q_DECLARE_METATYPE(ActivityInfoList)
QDBusArgument &operator<<(QDBusArgument &arg, const ActivityInfo);
QDBusArgument &operator<<(QDBusArgument &arg, const ActivityInfo&);
const QDBusArgument &operator>>(const QDBusArgument &arg, ActivityInfo &rec);
QDebug operator<<(QDebug dbg, const ActivityInfo &r);
......
......@@ -116,7 +116,7 @@ public:
return std::exp(-days / 32.0);
}
inline qreal timeFactor(QDateTime fromTime, QDateTime toTime) const
inline qreal timeFactor(const QDateTime &fromTime, const QDateTime &toTime) const
{
return timeFactor(fromTime.daysTo(toTime));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment