mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Various random code cleanups
This commit is contained in:
parent
358658fa34
commit
7892541383
73 changed files with 216 additions and 285 deletions
|
@ -1067,8 +1067,7 @@ void NodeDefManager::clear()
|
|||
|
||||
bool NodeDefManager::getId(const std::string &name, content_t &result) const
|
||||
{
|
||||
std::unordered_map<std::string, content_t>::const_iterator
|
||||
i = m_name_id_mapping_with_aliases.find(name);
|
||||
auto i = m_name_id_mapping_with_aliases.find(name);
|
||||
if(i == m_name_id_mapping_with_aliases.end())
|
||||
return false;
|
||||
result = i->second;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue