Commit a4bbc6e5 authored by Alexander Lohnau's avatar Alexander Lohnau 💬

Add trailing comma to enums

parent 12cc3d43
......@@ -22,12 +22,12 @@ public:
typedef std::shared_ptr<Database> Ptr;
enum Source {
ResourcesDatabase
ResourcesDatabase,
};
enum OpenMode {
ReadWrite,
ReadOnly
ReadOnly,
};
static Ptr instance(Source source, OpenMode openMode);
......
......@@ -38,7 +38,7 @@ public:
Running = 2,
Starting = 3,
Stopped = 4,
Stopping = 5
Stopping = 5,
};
/**
......
......@@ -31,14 +31,14 @@ public:
FocussedOut = 5, ///< resource lost the focus
LastEventType = 5,
UserEventType = 32
UserEventType = 32,
};
// These events can't come outside of the activity manager daemon,
// they are intended to provide some additional functionality
// to the daemon plugins
enum UserType {
UpdateScore = UserEventType + 1
UpdateScore = UserEventType + 1,
};
Event();
......
......@@ -23,7 +23,7 @@ public:
enum ReturnStatus {
Started = 0,
Stopped = 1,
FailedToStop = 2
FailedToStop = 2,
};
explicit KSMServer(QObject *parent = nullptr);
......
......@@ -20,7 +20,7 @@
namespace {
enum ActivityState {
Running = 2,
Stopped = 4
Stopped = 4,
};
}
......
......@@ -115,7 +115,7 @@ private:
enum WhatToRemember {
AllApplications = 0,
SpecificApplications = 1,
NoApplications = 2
NoApplications = 2,
};
QObject *m_activities;
......
......@@ -42,7 +42,7 @@ namespace Utils {
enum ErrorHandling {
IgnoreError,
FailOnError
FailOnError,
};
inline bool exec(Common::Database &database, ErrorHandling eh, QSqlQuery &query)
......
......@@ -19,7 +19,7 @@ namespace member_matcher {
LessOrEqual,
Equal,
GreaterOrEqual,
Greater
Greater,
};
// Member comparison object
......
......@@ -12,7 +12,7 @@ namespace utils {
enum {
Const = 0,
Mutable = 1
Mutable = 1,
};
template <typename T, int Policy = Const>
......
......@@ -15,7 +15,7 @@ class NextValueIterator {
public:
enum Type {
NormalIterator,
EndIterator
EndIterator,
};
NextValueIterator(ResultSet &query, Type type = NormalIterator)
......
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