clang-tidy
This commit is contained in:
@@ -63,8 +63,8 @@ auto ActionListOption::findCurrentIndex() const -> size_t {
|
||||
return 0;
|
||||
}
|
||||
|
||||
const std::string current_value = value_getter_();
|
||||
auto it = std::find(options_.begin(), options_.end(), current_value);
|
||||
const std::string CURRENT_VALUE = value_getter_();
|
||||
auto it = std::find(options_.begin(), options_.end(), CURRENT_VALUE);
|
||||
|
||||
if (it != options_.end()) {
|
||||
return static_cast<size_t>(std::distance(options_.begin(), it));
|
||||
|
||||
Reference in New Issue
Block a user