mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
C++11 patchset 2: remove util/cpp11.h and util/cpp11_container.h (#5821)
This commit is contained in:
parent
2362d3f926
commit
a98baef5e4
59 changed files with 223 additions and 298 deletions
|
@ -137,8 +137,8 @@ int ObjectRef::l_remove(lua_State *L)
|
|||
if (co->getType() == ACTIVEOBJECT_TYPE_PLAYER)
|
||||
return 0;
|
||||
|
||||
const UNORDERED_SET<int> &child_ids = co->getAttachmentChildIds();
|
||||
UNORDERED_SET<int>::const_iterator it;
|
||||
const std::unordered_set<int> &child_ids = co->getAttachmentChildIds();
|
||||
std::unordered_set<int>::const_iterator it;
|
||||
for (it = child_ids.begin(); it != child_ids.end(); ++it) {
|
||||
// Child can be NULL if it was deleted earlier
|
||||
if (ServerActiveObject *child = env->getActiveObject(*it))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue