diff --git a/common/tool/tool_manager.cpp b/common/tool/tool_manager.cpp index 8f052d57fa..4aa62d2e99 100644 --- a/common/tool/tool_manager.cpp +++ b/common/tool/tool_manager.cpp @@ -109,7 +109,7 @@ TOOL_MANAGER::TOOL_MANAGER() : TOOL_MANAGER::~TOOL_MANAGER() { - boost::unordered_map::iterator it, it_end; + std::map::iterator it, it_end; for( it = m_toolState.begin(), it_end = m_toolState.end(); it != it_end; ++it ) { @@ -276,7 +276,7 @@ bool TOOL_MANAGER::runTool( TOOL_BASE* aTool ) TOOL_BASE* TOOL_MANAGER::FindTool( int aId ) const { - boost::unordered_map::const_iterator it = m_toolIdIndex.find( aId ); + std::map::const_iterator it = m_toolIdIndex.find( aId ); if( it != m_toolIdIndex.end() ) return it->second->theTool; @@ -287,7 +287,7 @@ TOOL_BASE* TOOL_MANAGER::FindTool( int aId ) const TOOL_BASE* TOOL_MANAGER::FindTool( const std::string& aName ) const { - boost::unordered_map::const_iterator it = m_toolNameIndex.find( aName ); + std::map::const_iterator it = m_toolNameIndex.find( aName ); if( it != m_toolNameIndex.end() ) return it->second->theTool; diff --git a/include/tool/tool_manager.h b/include/tool/tool_manager.h index 62f7e42e8a..6969483664 100644 --- a/include/tool/tool_manager.h +++ b/include/tool/tool_manager.h @@ -28,7 +28,7 @@ #include #include -#include +#include #include @@ -143,7 +143,7 @@ public: template T* GetTool() { - boost::unordered_map::iterator tool = m_toolTypes.find( typeid( T ).name() ); + std::map::iterator tool = m_toolTypes.find( typeid( T ).name() ); if( tool != m_toolTypes.end() ) return static_cast( tool->second ); @@ -360,16 +360,16 @@ private: bool isActive( TOOL_BASE* aTool ); /// Index of registered tools current states, associated by tools' objects. - boost::unordered_map m_toolState; + std::map m_toolState; /// Index of the registered tools current states, associated by tools' names. - boost::unordered_map m_toolNameIndex; + std::map m_toolNameIndex; /// Index of the registered tools to easily lookup by their type. - boost::unordered_map m_toolTypes; + std::map m_toolTypes; /// Index of the registered tools current states, associated by tools' ID numbers. - boost::unordered_map m_toolIdIndex; + std::map m_toolIdIndex; /// Stack of the active tools std::deque m_activeTools;