refactor: fix clang-tidy auto*, const&, and curly braces (#5083)
This commit is contained in:
@@ -13,7 +13,9 @@ inline void persist(SignalVector<T> &vec, const std::string &name)
|
||||
auto setting = std::make_unique<ChatterinoSetting<std::vector<T>>>(name);
|
||||
|
||||
for (auto &&item : setting->getValue())
|
||||
{
|
||||
vec.append(item);
|
||||
}
|
||||
|
||||
vec.delayedItemsChanged.connect([setting = setting.get(), vec = &vec] {
|
||||
setting->setValue(vec->raw());
|
||||
|
||||
Reference in New Issue
Block a user