From a98baef5e4fedca36c8c8755ad7c8233469f6a3f Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Sun, 4 Jun 2017 21:00:04 +0200 Subject: C++11 patchset 2: remove util/cpp11.h and util/cpp11_container.h (#5821) --- src/clientobject.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/clientobject.cpp') diff --git a/src/clientobject.cpp b/src/clientobject.cpp index 89a0474a4..329f10469 100644 --- a/src/clientobject.cpp +++ b/src/clientobject.cpp @@ -42,8 +42,8 @@ ClientActiveObject* ClientActiveObject::create(ActiveObjectType type, Client *client, ClientEnvironment *env) { // Find factory function - UNORDERED_MAP::iterator n = m_types.find(type); - if(n == m_types.end()) { + std::unordered_map::iterator 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; @@ -57,7 +57,7 @@ ClientActiveObject* ClientActiveObject::create(ActiveObjectType type, void ClientActiveObject::registerType(u16 type, Factory f) { - UNORDERED_MAP::iterator n = m_types.find(type); + std::unordered_map::iterator n = m_types.find(type); if(n != m_types.end()) return; m_types[type] = f; -- cgit v1.2.3