diff options
| author | Johannes Altmanninger <aclopte@gmail.com> | 2022-07-31 21:34:13 +0200 |
|---|---|---|
| committer | Johannes Altmanninger <aclopte@gmail.com> | 2023-06-17 11:21:16 +0200 |
| commit | 6563b820929772a32ce1afe1d9fce1cc5d1faf2c (patch) | |
| tree | 919d92a0d7992da4fd1c39663e3fcce005ad1038 /src/input_handler.cc | |
| parent | 00490cd08427250aaabc4fca791d8c0381b95fde (diff) | |
Use auto to avoid repeating type of dynamic cast
I think the clang-tidy lint is called modernize-use-auto
Diffstat (limited to 'src/input_handler.cc')
| -rw-r--r-- | src/input_handler.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc index 4e953738..c134c3e9 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -1705,7 +1705,7 @@ void InputHandler::prompt(StringView prompt, String initstr, String emptystr, void InputHandler::set_prompt_face(Face prompt_face) { - InputModes::Prompt* prompt = dynamic_cast<InputModes::Prompt*>(¤t_mode()); + auto* prompt = dynamic_cast<InputModes::Prompt*>(¤t_mode()); if (prompt) prompt->set_prompt_face(prompt_face); } |
