Codechange: Make GetDefaultValueCallback() more similar to other setting override callbacks (#13259)

This commit is contained in:
Loïc Guilloux
2025-01-04 00:17:47 +01:00
committed by GitHub
parent d38ecd6525
commit a52923b3b9
4 changed files with 16 additions and 31 deletions

View File

@@ -479,7 +479,7 @@ void IntSettingDesc::SetValueDParams(uint first_param, int32_t value) const
*/
int32_t IntSettingDesc::GetDefaultValue() const
{
return this->get_def_cb != nullptr ? this->get_def_cb() : this->def;
return this->get_def_cb != nullptr ? this->get_def_cb(*this) : this->def;
}
/**