]> git.lizzy.rs Git - minetest.git/blobdiff - src/fontengine.cpp
Little optimization on getAdded/Removed activeobjects per player loop.
[minetest.git] / src / fontengine.cpp
index 14b65f593ee34f74e194513c7cea695d5ef2653f..55ff001e728ba94ecfe2257ae20fd7201fbb94d6 100644 (file)
@@ -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();
 }
 
@@ -121,7 +122,7 @@ void FontEngine::cleanCache()
 
                for (std::map<unsigned int, irr::gui::IGUIFont*>::iterator iter
                                = m_font_cache[i].begin();
-                               iter != m_font_cache[i].end(); iter++) {
+                               iter != m_font_cache[i].end(); ++iter) {
                        iter->second->drop();
                        iter->second = NULL;
                }