mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-23 17:55:43 -05:00
Fix warnings
This commit is contained in:
@@ -10,7 +10,7 @@ namespace advss {
|
||||
enum class HotkeyType;
|
||||
|
||||
bool CanSimulateKeyPresses();
|
||||
void PressKeys(const std::vector<HotkeyType> keys, int duration);
|
||||
void PressKeys(const std::vector<HotkeyType> &keys, int duration);
|
||||
|
||||
class Hotkey {
|
||||
public:
|
||||
|
||||
@@ -188,7 +188,7 @@ static const std::unordered_map<HotkeyType, long> keyTable = {
|
||||
{HotkeyType::Key_NumpadEnter, XK_KP_Enter},
|
||||
};
|
||||
|
||||
void PressKeys(const std::vector<HotkeyType> keys, int duration)
|
||||
void PressKeys(const std::vector<HotkeyType> &keys, int duration)
|
||||
{
|
||||
if (!canSimulateKeyPresses) {
|
||||
return;
|
||||
|
||||
@@ -9,7 +9,7 @@ bool CanSimulateKeyPresses()
|
||||
return canSimulateKeyPresses;
|
||||
}
|
||||
|
||||
void PressKeys(const std::vector<HotkeyType> keys, int duration)
|
||||
void PressKeys(const std::vector<HotkeyType> &, int)
|
||||
{
|
||||
// Not supported on MacOS
|
||||
return;
|
||||
|
||||
@@ -138,7 +138,7 @@ static const std::unordered_map<HotkeyType, long> keyTable = {
|
||||
{HotkeyType::Key_NumpadEnter, VK_RETURN},
|
||||
};
|
||||
|
||||
void PressKeys(const std::vector<HotkeyType> keys, int duration)
|
||||
void PressKeys(const std::vector<HotkeyType> &keys, int duration)
|
||||
{
|
||||
const int repeatInterval = 100;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user