summaryrefslogtreecommitdiffstats
path: root/AFBClient.h
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-04 16:25:35 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-14 14:04:51 +0200
commitdaac597f2ffe16f19b0669e69c91a323b0122d4b (patch)
treec49e7ef303dfea00f98ac9e4b98c9b2633e8eede /AFBClient.h
parent0ffdfa88ee21c533e2b3f3627c088ca12fc661d2 (diff)
AFBClient: fix some clang-tidy issues
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'AFBClient.h')
-rw-r--r--AFBClient.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/AFBClient.h b/AFBClient.h
index 983c2ad..964e2b0 100644
--- a/AFBClient.h
+++ b/AFBClient.h
@@ -3,8 +3,7 @@
#include <functional>
-class AFBClient
-{
+class AFBClient {
AFBClient();
~AFBClient();
@@ -12,17 +11,17 @@ class AFBClient
AFBClient &operator=(const AFBClient &) = delete;
public:
- typedef std::function<void(char const *label)> handler_fun;
+ using handler_fun = std::function<void(const char *)>;
enum EventType {
- Event_Active = 1,
- Event_Inactive,
+ Event_Active = 1,
+ Event_Inactive,
- Event_Visible,
- Event_Invisible,
+ Event_Visible,
+ Event_Invisible,
- Event_SyncDraw,
- Event_FlushDraw,
+ Event_SyncDraw,
+ Event_FlushDraw,
};
static AFBClient &instance();