impr: Don't pass unique_ptr by const reference

This commit is contained in:
WerWolv
2024-02-24 15:06:28 +01:00
parent b2edb0441a
commit 393bea6d4b
3 changed files with 3 additions and 3 deletions

View File

@@ -57,7 +57,7 @@ namespace hex {
}
}
void ShortcutManager::process(const std::unique_ptr<View> &currentView, bool ctrl, bool alt, bool shift, bool super, bool focused, u32 keyCode) {
void ShortcutManager::process(const View *currentView, bool ctrl, bool alt, bool shift, bool super, bool focused, u32 keyCode) {
const Shortcut pressedShortcut = getShortcut(ctrl, alt, shift, super, focused, keyCode);
if (keyCode != 0)
s_prevShortcut = Shortcut(pressedShortcut.getKeys());