Client *client, ClientEnvironment *env)
{
// Find factory function
- UNORDERED_MAP<u16, Factory>::iterator n = m_types.find(type);
- if(n == m_types.end()) {
+ auto n = m_types.find(type);
+ if (n == m_types.end()) {
// If factory is not found, just return.
warningstream << "ClientActiveObject: No factory for type="
<< (int)type << std::endl;
void ClientActiveObject::registerType(u16 type, Factory f)
{
- UNORDERED_MAP<u16, Factory>::iterator n = m_types.find(type);
- if(n != m_types.end())
+ auto n = m_types.find(type);
+ if (n != m_types.end())
return;
m_types[type] = f;
}