summaryrefslogtreecommitdiffhomepage
path: root/logic/main-settings.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-01-09 15:05:35 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-01-10 03:18:57 +0100
commitaf2dcca279e6fc23c9b1694170cbdfe36b32eb79 (patch)
treea1d5cf6e77735e40138932705a0cc7287f6c5c73 /logic/main-settings.hpp
parent5ad2275e0e50be8a4e9f506fb3f8dab2b02d0420 (diff)
logic, cv: fix header namespace pollution
We've had "using namespace options;" in headers for a while now.
Diffstat (limited to 'logic/main-settings.hpp')
-rw-r--r--logic/main-settings.hpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/logic/main-settings.hpp b/logic/main-settings.hpp
index fd3384eb..3ea68bca 100644
--- a/logic/main-settings.hpp
+++ b/logic/main-settings.hpp
@@ -10,12 +10,15 @@
#include <QString>
#include "options/options.hpp"
-using namespace options;
#include "api/plugin-api.hpp"
#include "spline/axis-opts.hpp"
#include "export.hpp"
+namespace main_settings_impl {
+
+using namespace options;
+
struct OTR_LOGIC_EXPORT key_opts
{
value<QString> keycode, guid;
@@ -58,3 +61,9 @@ struct OTR_LOGIC_EXPORT main_settings final
main_settings();
};
+
+} // ns main_settings_impl
+
+using main_settings_impl::key_opts;
+using main_settings_impl::module_settings;
+using main_settings_impl::main_settings;