Fix warnings
Some checks failed
debian-build / build (push) Has been cancelled
Push to master / Check Formatting 🔍 (push) Has been cancelled
Push to master / Build Project 🧱 (push) Has been cancelled
Push to master / Create Release 🛫 (push) Has been cancelled

This commit is contained in:
WarmUpTill
2025-12-16 22:46:36 +01:00
committed by WarmUpTill
parent c344c88acd
commit f706416df5
8 changed files with 16 additions and 14 deletions

View File

@@ -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:

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;