Match modal_dialog::register_integer to header

For whatever reason, callback_save_value had type
std::function<void(int)> in the .cpp file but
std::function<void(const int)> in the header file. This reconciles them
to both take in an integer as a parameter.
This commit is contained in:
JJ Marr 2024-12-01 12:19:54 -05:00 committed by Charles Dang
parent ecd273914c
commit 92e91e4c0e

View file

@ -162,7 +162,7 @@ field_integer* modal_dialog::register_integer(
const std::string& id,
const bool mandatory,
const std::function<int()>& callback_load_value,
const std::function<void(const int)>& callback_save_value)
const std::function<void(int)>& callback_save_value)
{
field_integer* field = new field_integer(
id, mandatory, callback_load_value, callback_save_value);