diff options
author | est31 <MTest31@outlook.com> | 2015-07-09 08:23:08 +0200 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2015-07-09 08:25:17 +0200 |
commit | cb8978fb1d6576ec82526adcc8deea2b745c5dca (patch) | |
tree | d3d9a9e3b7aad12f3ba991f16a9175cf8085b17e /src/clouds.cpp | |
parent | 4ece2b9e32b5948628a20dece54ecfb369a17757 (diff) | |
download | minetest-cb8978fb1d6576ec82526adcc8deea2b745c5dca.tar.gz minetest-cb8978fb1d6576ec82526adcc8deea2b745c5dca.tar.bz2 minetest-cb8978fb1d6576ec82526adcc8deea2b745c5dca.zip |
Settings: pass name to callbacks by reference
Spare some copies.
Diffstat (limited to 'src/clouds.cpp')
-rw-r--r-- | src/clouds.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clouds.cpp b/src/clouds.cpp index e213d118f..29210e2b4 100644 --- a/src/clouds.cpp +++ b/src/clouds.cpp @@ -30,7 +30,7 @@ class Clouds; Clouds *g_menuclouds = NULL; irr::scene::ISceneManager *g_menucloudsmgr = NULL; -static void cloud_3d_setting_changed(const std::string settingname, void *data) +static void cloud_3d_setting_changed(const std::string &settingname, void *data) { ((Clouds *)data)->readSettings(); } |