From 569f5dc5f7de2ec275ee08c54cede72981be4f62 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 18 Dec 2013 00:28:27 +0300 Subject: add restrict into inputmanager. --- src/input/inputmanager.cpp | 2 +- src/input/inputmanager.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/input/inputmanager.cpp b/src/input/inputmanager.cpp index c84044771..74515e21d 100644 --- a/src/input/inputmanager.cpp +++ b/src/input/inputmanager.cpp @@ -282,7 +282,7 @@ void InputManager::makeDefault(const int i) } } -bool InputManager::hasConflicts(int &key1, int &key2) const +bool InputManager::hasConflicts(int &restrict key1, int &restrict key2) const { /** * No need to parse the square matrix: only check one triangle diff --git a/src/input/inputmanager.h b/src/input/inputmanager.h index 595900303..cb775ee9c 100644 --- a/src/input/inputmanager.h +++ b/src/input/inputmanager.h @@ -111,7 +111,8 @@ class InputManager final void makeDefault(const int i); - bool hasConflicts(int &key1, int &key2) const A_WARN_UNUSED; + bool hasConflicts(int &restrict key1, + int &restrict key2) const A_WARN_UNUSED; void callbackNewKey(); -- cgit v1.2.3-60-g2f50