summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-01-20 13:48:08 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-01-20 13:48:08 +0100
commit7ebb4a1996eaa9edd9f13a3fb31834d0163561c6 (patch)
tree2d1c581920519039c19bd6cc98db8ea2c9f8a740
parent575f424b55ab325510b258ac37e3e530f0594544 (diff)
api: kill `static' in a header-only library
Also drop the unsigned suffix from magic constants, clang doesn't complain.
-rw-r--r--api/plugin-support.hpp13
1 files changed, 7 insertions, 6 deletions
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;