diff --git a/shell/common/gin_helper/function_template.h b/shell/common/gin_helper/function_template.h index 5633184bec60..2889d17beaea 100644 --- a/shell/common/gin_helper/function_template.h +++ b/shell/common/gin_helper/function_template.h @@ -262,7 +262,9 @@ class Invoker, ArgTypes...> : ArgumentHolder(args, invoker_options)..., args_(args) {} - bool IsOK() { return And(ArgumentHolder::ok...); } + [[nodiscard]] bool IsOK() const { + return (... && ArgumentHolder::ok); + } template void DispatchToCallback( @@ -285,12 +287,6 @@ class Invoker, ArgTypes...> } private: - static bool And() { return true; } - template - static bool And(bool arg1, T... args) { - return arg1 && And(args...); - } - raw_ptr args_; };