diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2024-12-07 18:51:18 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-07 18:51:18 +0100 |
| commit | 8bbeee11734d3ba8e2cf15d19cb3c302f8bfdbf2 (patch) | |
| tree | 5b6654818049a0743f62defc090e86d4327cccbb /src/devices/IHID.hpp | |
| parent | b1e5cc66bdb20b002c93479490c3a317552210b3 (diff) | |
core: Add clang-tidy (#8664)
This adds a .clang-tidy file for us.
It's not a strict requirement to be compliant, but I tuned it to be alright.
Diffstat (limited to 'src/devices/IHID.hpp')
| -rw-r--r-- | src/devices/IHID.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/IHID.hpp b/src/devices/IHID.hpp index 4a0ff8fd..b9cc4212 100644 --- a/src/devices/IHID.hpp +++ b/src/devices/IHID.hpp @@ -4,14 +4,14 @@ #include <string> #include "../helpers/signal/Signal.hpp" -enum eHIDCapabilityType : uint32_t { +enum eHIDCapabilityType : uint8_t { HID_INPUT_CAPABILITY_KEYBOARD = (1 << 0), HID_INPUT_CAPABILITY_POINTER = (1 << 1), HID_INPUT_CAPABILITY_TOUCH = (1 << 2), HID_INPUT_CAPABILITY_TABLET = (1 << 3), }; -enum eHIDType { +enum eHIDType : uint8_t { HID_TYPE_UNKNOWN = 0, HID_TYPE_POINTER, HID_TYPE_KEYBOARD, @@ -27,7 +27,7 @@ enum eHIDType { */ class IHID { public: - virtual ~IHID() {} + virtual ~IHID() = default; virtual uint32_t getCapabilities() = 0; virtual eHIDType getType(); |
