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

Add trailing comma to enums

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