File tree Expand file tree Collapse file tree
include/IbInputSimulator/SendTypes Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ namespace Send::Type::Internal {
229229 }
230230 };
231231
232- class Logitech final : virtual public Base, public VirtualKeyStates {
232+ class Logitech final : public VirtualKeyStates {
233233 LogitechDriver driver;
234234 public:
235235 Logitech () : VirtualKeyStates(keyboard_report.modifiers, keyboard_mutex) {}
Original file line number Diff line number Diff line change 33#include " usb.hpp"
44
55namespace Send ::Type::Internal {
6- class Razer final : virtual public Base, public VirtualKeyStates {
6+ class Razer final : public VirtualKeyStates {
77 HANDLE device;
88
99 KeyboardModifiers modifiers;
Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ namespace Send::Type::Internal {
7676 this ->get_key_state_fallback = get_key_state_fallback;
7777 }
7878
79+ virtual ~Base () = default ;
7980 virtual void destroy () = 0;
8081
8182 virtual uint32_t send_input (const INPUT inputs[], uint32_t n) {
@@ -139,7 +140,7 @@ namespace Send::Type::Internal {
139140 bool RGui : 1 ;
140141 };
141142
142- class VirtualKeyStates : virtual public Base {
143+ class VirtualKeyStates : public Base {
143144 KeyboardModifiers& modifiers;
144145 std::mutex& mutex;
145146
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ DLLAPI void __stdcall IbSendDestroy() {
165165 if (!main::send)
166166 return ;
167167 main::send->destroy ();
168- main::send.release ();
168+ main::send.reset ();
169169}
170170
171171DLLAPI void __stdcall IbSendSyncKeyStates () {
You can’t perform that action at this time.
0 commit comments