mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
C++11 cleanup on constructors (#6000)
* C++11 cleanup on constructors dir script
This commit is contained in:
@@ -300,20 +300,19 @@ int LuaAreaStore::l_from_file(lua_State *L)
|
||||
return deserialization_helper(L, o->as, is);
|
||||
}
|
||||
|
||||
LuaAreaStore::LuaAreaStore()
|
||||
LuaAreaStore::LuaAreaStore() : as(AreaStore::getOptimalImplementation())
|
||||
{
|
||||
this->as = AreaStore::getOptimalImplementation();
|
||||
}
|
||||
|
||||
LuaAreaStore::LuaAreaStore(const std::string &type)
|
||||
{
|
||||
#if USE_SPATIAL
|
||||
if (type == "LibSpatial") {
|
||||
this->as = new SpatialAreaStore();
|
||||
as = new SpatialAreaStore();
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
this->as = new VectorAreaStore();
|
||||
as = new VectorAreaStore();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user