From 7ebb4a1996eaa9edd9f13a3fb31834d0163561c6 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 20 Jan 2019 13:48:08 +0100 Subject: api: kill `static' in a header-only library Also drop the unsigned suffix from magic constants, clang doesn't complain. --- api/plugin-support.hpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'api') diff --git a/api/plugin-support.hpp b/api/plugin-support.hpp index e00732ac..df8953f8 100644 --- a/api/plugin-support.hpp +++ b/api/plugin-support.hpp @@ -40,10 +40,10 @@ struct dylib final { enum Type : unsigned { - Filter = 0xdeadbabeu, - Tracker = 0xcafebeefu, - Protocol = 0xdeadf00du, - Extension = 0xcafebabeu, + Filter = 0xdeadbabe, + Tracker = 0xcafebeef, + Protocol = 0xdeadf00d, + Extension = 0xcafebabe, Invalid = (unsigned)-1, }; @@ -96,7 +96,7 @@ struct dylib final using str = QLatin1String; - static const struct filter_ { + const struct filter_ { Type type; QLatin1String glob; } filters[] = { @@ -164,7 +164,7 @@ private: in = in.mid(pfx_len); in = in.left(in.size() - rst_len); - static constexpr const char* const names[] = + const char* const names[] = { "opentrack-tracker-", "opentrack-proto-", @@ -218,6 +218,7 @@ struct Modules final dylib_list& trackers() { return tracker_modules; } dylib_list& protocols() { return protocol_modules; } dylib_list& extensions() { return extension_modules; } + private: dylib_list module_list; dylib_list filter_modules; -- cgit v1.2.3