Add braces to satisfy clang-tidy readability-braces-around-statements

This commit is contained in:
J. Nick Koston
2026-03-27 16:21:07 -10:00
parent 3a3345ace4
commit 41f9ed7fda
+2 -1
View File
@@ -1847,9 +1847,10 @@ template<typename... Ts> class CallbackManager<void(Ts...)> {
/// Non-template core to avoid code duplication per lambda type.
/// Inline fast path; cold growth path is in helpers.cpp via callback_manager_grow().
void add_(CbType cb) {
if (this->size_ == this->capacity_)
if (this->size_ == this->capacity_) {
this->data_ =
static_cast<CbType *>(callback_manager_grow(this->data_, this->size_, this->capacity_, sizeof(CbType)));
}
this->data_[this->size_++] = cb;
}
CbType *data_{nullptr};