From 7b61d162627fad51fc015e745882c289dad7d7bb Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Fri, 12 Aug 2022 12:08:23 +0100 Subject: [PATCH] LibWeb: Correct variable name in `get_shortest_function_length()` --- .../Tools/CodeGenerators/LibWeb/WrapperGenerator/IDLTypes.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator/IDLTypes.h b/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator/IDLTypes.h index 12b9becd03..975b3d06ef 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator/IDLTypes.h +++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator/IDLTypes.h @@ -161,10 +161,10 @@ struct ParameterizedType : public Type { static inline size_t get_shortest_function_length(Vector const& overload_set) { - size_t longest_length = SIZE_MAX; + size_t shortest_length = SIZE_MAX; for (auto const& function : overload_set) - longest_length = min(function.length(), longest_length); - return longest_length; + shortest_length = min(function.length(), shortest_length); + return shortest_length; } class Interface {