mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix various points reported by cppcheck (#5656)
* Fix various performance issues reported by cppcheck + code style (CI) * Make CI happy with code style on master * guiFileSelectMenu: remove useless includes * some performance fixes pointed by cppcheck * remove some useless casts * TextDest: remove unused setFormSpec function * Fix various iterator post-increment reported by cppcheck
This commit is contained in:
parent
af96309621
commit
a7e131f53e
13 changed files with 29 additions and 31 deletions
|
@ -25,14 +25,13 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
|
||||
#include "map_settings_manager.h"
|
||||
|
||||
MapSettingsManager::MapSettingsManager(
|
||||
Settings *user_settings, const std::string &map_meta_path)
|
||||
MapSettingsManager::MapSettingsManager(Settings *user_settings,
|
||||
const std::string &map_meta_path):
|
||||
mapgen_params(NULL),
|
||||
m_map_meta_path(map_meta_path),
|
||||
m_map_settings(new Settings()),
|
||||
m_user_settings(user_settings)
|
||||
{
|
||||
m_map_meta_path = map_meta_path;
|
||||
m_user_settings = user_settings;
|
||||
m_map_settings = new Settings;
|
||||
mapgen_params = NULL;
|
||||
|
||||
assert(m_user_settings != NULL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue