mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Settings: pass name to callbacks by reference
Spare some copies.
This commit is contained in:
@@ -35,7 +35,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
FontEngine* g_fontengine = NULL;
|
||||
|
||||
/** callback to be used on change of font size setting */
|
||||
static void font_setting_changed(const std::string, void *userdata) {
|
||||
static void font_setting_changed(const std::string &name, void *userdata)
|
||||
{
|
||||
g_fontengine->readSettings();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user