aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2019-01-11 08:06:24 +0100
committerLaurent Montel <[email protected]>2019-01-11 08:06:24 +0100
commit7a21837ba1004fe71b683cfcd44d2bcb177a1acf (patch)
treeb4fa3c5bb68ea92da161cb6ec9c9227405597cbb
parent00f5565ac69eda02f0e5520819d606b42557c7b8 (diff)
Consti'fy
-rw-r--r--src/common/dbus/org.kde.ActivityManager.Activities.cpp2
-rw-r--r--src/common/dbus/org.kde.ActivityManager.Activities.h2
-rw-r--r--src/service/plugins/sqlite/ResourceScoreCache.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/common/dbus/org.kde.ActivityManager.Activities.cpp b/src/common/dbus/org.kde.ActivityManager.Activities.cpp
index 884e663..17e558e 100644
--- a/src/common/dbus/org.kde.ActivityManager.Activities.cpp
+++ b/src/common/dbus/org.kde.ActivityManager.Activities.cpp
@@ -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();
diff --git a/src/common/dbus/org.kde.ActivityManager.Activities.h b/src/common/dbus/org.kde.ActivityManager.Activities.h
index 94f0fbe..cd79b27 100644
--- a/src/common/dbus/org.kde.ActivityManager.Activities.h
+++ b/src/common/dbus/org.kde.ActivityManager.Activities.h
@@ -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);
diff --git a/src/service/plugins/sqlite/ResourceScoreCache.cpp b/src/service/plugins/sqlite/ResourceScoreCache.cpp
index 373fc19..f30e892 100644
--- a/src/service/plugins/sqlite/ResourceScoreCache.cpp
+++ b/src/service/plugins/sqlite/ResourceScoreCache.cpp
@@ -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));
}