From 2fa941b89177cf91cbbc84700c1d7631aa85bcc2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 9 Aug 2015 00:27:33 +0300 Subject: Add some missing checks to other files found by paranucker. --- src/input/inputactionsortfunctor.h | 2 +- src/input/inputmanager.h | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'src/input') diff --git a/src/input/inputactionsortfunctor.h b/src/input/inputactionsortfunctor.h index fbd9b79f3..6e4c47582 100644 --- a/src/input/inputactionsortfunctor.h +++ b/src/input/inputactionsortfunctor.h @@ -35,7 +35,7 @@ class InputActionSortFunctor final >= keys[static_cast(key2)].priority; } - const InputActionData *keys; + const InputActionData *keys A_NONNULLPOINTER; }; #endif // INPUT_INPUTACTIONSORTFUNCTOR_H diff --git a/src/input/inputmanager.h b/src/input/inputmanager.h index c9d71a091..f8e09e664 100644 --- a/src/input/inputmanager.h +++ b/src/input/inputmanager.h @@ -95,7 +95,7 @@ class InputManager final /** * Set a reference to the key setup window. */ - void setSetupInput(Setup_Input *const setupInput) + void setSetupInput(Setup_Input *const setupInput) A_NONNULL(2) { mSetupInput = setupInput; } /** @@ -145,9 +145,10 @@ class InputManager final static bool isActionActive0(const InputActionT index) A_WARN_UNUSED; - Setup_Input *mSetupInput; /**< Reference to setup window */ - - InputActionT mNewKeyIndex; /**< Index of new key to be assigned */ + /** Reference to setup window */ + Setup_Input *mSetupInput A_NONNULLPOINTER; + /** Index of new key to be assigned */ + InputActionT mNewKeyIndex; int mMask; -- cgit v1.2.3-60-g2f50