summaryrefslogtreecommitdiffstats
path: root/src/server/ControlBindings.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/ControlBindings.hpp')
-rw-r--r--src/server/ControlBindings.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/ControlBindings.hpp b/src/server/ControlBindings.hpp
index 286dde15..630ec18a 100644
--- a/src/server/ControlBindings.hpp
+++ b/src/server/ControlBindings.hpp
@@ -36,7 +36,7 @@ class PortImpl;
class ControlBindings {
public:
- enum Type {
+ enum class Type {
NULL_CONTROL,
MIDI_BENDER,
MIDI_CC,
@@ -47,11 +47,11 @@ public:
};
struct Key {
- Key(Type t=NULL_CONTROL, int16_t n=0) : type(t), num(n) {}
+ Key(Type t=Type::NULL_CONTROL, int16_t n=0) : type(t), num(n) {}
inline bool operator<(const Key& other) const {
return (type == other.type) ? (num < other.num) : (type < other.type);
}
- inline operator bool() const { return type != NULL_CONTROL; }
+ inline operator bool() const { return type != Type::NULL_CONTROL; }
Type type;
int16_t num;
};