diff options
| author | 2023-04-17 08:45:31 -0700 | |
|---|---|---|
| committer | 2023-04-17 15:14:59 -0700 | |
| commit | 5af2834b5ec418e7d1c8b5925b488df12c18aab4 (patch) | |
| tree | d4bc8ef01d6f78fac1d01ed0ce1ad40ed362c736 /include/input/KeyCharacterMap.h | |
| parent | 0fe0126d4a0cab98a8c5cc92496d7abe9f0fb781 (diff) | |
Pass reference to finishKey
Since the parameter is assumed to be non-null, pass it by reference.
Bug: 274058082
Test: m libinput_tests && $ANDROID_HOST_OUT/nativetest64/libinput_tests/libinput_tests
Change-Id: Iedf8970a57e4463e6addc8ee1013feb3ee60c009
Diffstat (limited to 'include/input/KeyCharacterMap.h')
| -rw-r--r-- | include/input/KeyCharacterMap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/input/KeyCharacterMap.h b/include/input/KeyCharacterMap.h index c67310eaec..9f1c0e28c6 100644 --- a/include/input/KeyCharacterMap.h +++ b/include/input/KeyCharacterMap.h @@ -227,7 +227,7 @@ private: status_t parseMapKey(); status_t parseKey(); status_t parseKeyProperty(); - status_t finishKey(Key* key); + status_t finishKey(Key& key); status_t parseModifier(const std::string& token, int32_t* outMetaState); status_t parseCharacterLiteral(char16_t* outCharacter); }; |