From 6563b820929772a32ce1afe1d9fce1cc5d1faf2c Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sun, 31 Jul 2022 21:34:13 +0200 Subject: [PATCH] Use auto to avoid repeating type of dynamic cast I think the clang-tidy lint is called modernize-use-auto --- src/input_handler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(¤t_mode()); + auto* prompt = dynamic_cast(¤t_mode()); if (prompt) prompt->set_prompt_face(prompt_face); }