mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
C++11 cleanup on constructors (#6000)
* C++11 cleanup on constructors dir script
This commit is contained in:
@@ -58,7 +58,7 @@ const Area *AreaStore::getArea(u32 id) const
|
||||
{
|
||||
AreaMap::const_iterator it = areas_map.find(id);
|
||||
if (it == areas_map.end())
|
||||
return NULL;
|
||||
return nullptr;
|
||||
return &it->second;
|
||||
}
|
||||
|
||||
@@ -239,7 +239,7 @@ bool SpatialAreaStore::insertArea(Area *a)
|
||||
if (!areas_map.insert(std::make_pair(a->id, *a)).second)
|
||||
// ID is not unique
|
||||
return false;
|
||||
m_tree->insertData(0, NULL, get_spatial_region(a->minedge, a->maxedge), a->id);
|
||||
m_tree->insertData(0, nullptr, get_spatial_region(a->minedge, a->maxedge), a->id);
|
||||
invalidateCache();
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user