summaryrefslogtreecommitdiff
path: root/src/fontengine.cpp
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-07-09 08:23:08 +0200
committerest31 <MTest31@outlook.com>2015-07-09 08:25:17 +0200
commitcb8978fb1d6576ec82526adcc8deea2b745c5dca (patch)
treed3d9a9e3b7aad12f3ba991f16a9175cf8085b17e /src/fontengine.cpp
parent4ece2b9e32b5948628a20dece54ecfb369a17757 (diff)
downloadminetest-cb8978fb1d6576ec82526adcc8deea2b745c5dca.tar.gz
minetest-cb8978fb1d6576ec82526adcc8deea2b745c5dca.tar.bz2
minetest-cb8978fb1d6576ec82526adcc8deea2b745c5dca.zip
Settings: pass name to callbacks by reference
Spare some copies.
Diffstat (limited to 'src/fontengine.cpp')
-rw-r--r--src/fontengine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fontengine.cpp b/src/fontengine.cpp
index 14b65f593..f881701e0 100644
--- a/src/fontengine.cpp
+++ b/src/fontengine.cpp
@@ -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();
}